#include "cffile.h"
#include <string>
#include <iostream>
#include <cstdlib>
using namespace std;
int main() {
CFfile IO("poop.txt",FORCE_OVERWRITE);
string str = "this is cool if it works...\n";
IO.write("poopoo");
IO << ENDL << str << ENDL;
IO << 24 << 'a' << "asdf" << 2.786 << ENDL;
IO.toggleOmode();
IO.toggleImode();
IO << DOSENDL << str << DOSENDL;
IO << 24 << 'a' << "asdf" << 2.786 << DOSENDL;
IO >> str;
IO << str;
// IO.backup("testio.cpp","test.txt");
return 0;
}
| w | e | b | c | p | p |
|
| |||||