How do I read a .txt copy the content to another .txt by using fstream to a similar content. The problem is, when in the file there is new line. How do I detect that while u
There's a much easier way to do the job:
#include int main() { std::ifstream inFile ("note.txt"); std::ofstream outFile("note_new.txt"); outFile << inFile.rdbuf(); }