P
Pradeep
Hi all,
I have a file a log.txt. I have read the file each line with the
following.
ifstream inputFile("log.txt");
std::string line;
if (inputFile.is_open())
{
while (! inputFile.eof() )
{
getline (inputFile,line,"\n");
// cout << line << endl;
}
inputFile.close();
}
log.txt is of following form
------------------------------------
Source File: m.log
File Size: 45333 bytes
Start Time: Feb 20 2000
Comment:
Dest. File: dest.log
m.log is already in prescribed file format.
My Question is If I want to read a partial message "already in a
prescribed format" in a line how do I do that?
Regards
Pradeep
I have a file a log.txt. I have read the file each line with the
following.
ifstream inputFile("log.txt");
std::string line;
if (inputFile.is_open())
{
while (! inputFile.eof() )
{
getline (inputFile,line,"\n");
// cout << line << endl;
}
inputFile.close();
}
log.txt is of following form
------------------------------------
Source File: m.log
File Size: 45333 bytes
Start Time: Feb 20 2000
Comment:
Dest. File: dest.log
m.log is already in prescribed file format.
My Question is If I want to read a partial message "already in a
prescribed format" in a line how do I do that?
Regards
Pradeep