Hi.
Excuse me, I didn't understand your question exactly.
But if you want to read a file line by line, you can use getline() in cstring.h
1 2 3 4 5 6 7 8 9
#include <cstring.h>
#include <fstream.h>
int main()
{
fstream file("FilePath", ios::in);
string str;
getline(file, str); // <- This line read a line of file and put it in a string object
}