I just try to write a program in C++. I knew it is very easy. but I can't not figure out whai's wrong?
I want to read a very long string in a .txt file, and then split this string into many substrings (the length of each substring is 50).
My code like this:
using namespace std;
const char* filename="aa.txt";
cout<<endl<<"Failed to open file"<<filename;