To perform your initial requirement, you just need to keep track
of the position at the start of the line. Something like:


CStdioFile SaveFile;

CString strFilePath =...