If the file is the text one then read it as text, then parse this text to get what you need.
If MFC project you could use CStdioFile class to read a file, and CString class to parse.