// addbr // by Eric Marcarelli #include #include #include using namespace std; int main (int argc, char *argv[]) { ifstream in(argv[1]); if (!in) { cout << "Can't open file" << endl; return 1; } string line, fileText; while(getline(in, line)) fileText += line + "\n
"; ofstream out(argv[1]); if (!out) { cout << "Couldn't save file" << endl; return 1; } out << fileText; return 0; }