Ok, here is the problem that I am facing wth:

(All I need is a point to the right direction not the code for the problem, that I want to do myself)

I have a txt file with several lines:

111111, sdsaddsdasd, 2132323213, axaxccasx

I need to read these lines, one by one and place them into another file. I need to read them one by one because I need to write in the destination file only some parts(tokens) of the initial file.

What is the actual way I can achieve this? I was trying to make a vector of strings where I would store each line read from the first file, but I do not know how to read line by line. Are there any CFile methods that read a file, line by line so I can store the lines in that vector?

Thanx.