reading from a .txt file

  • Thread starter Thread starter jstech
  • Start date Start date
J

jstech

I would like to have a list in a .txt file for example:
James Bond, Action|Bowfinger,Comedy|etc...

then split the data into seperate strings i.e vmoviename and vgenre and
once that is done I would like to add that to a listcontrol.

help is appreciated!!

thanks!
 
Check the fopen(), fgets(), fclose() to read from file.
Check the strchr(), strtok() or strstr() to do string parsing/matching.
Check MFC's CListBox.AddString()

Also check the StringList parser class from here:
http://lgwm.org/tech/code.htm

Regards,
Elias
 
Back
Top