Create a variable of CStdioFile
1. Use this "myFile" to open the File which you want to access.
CStdioFile myFile(csvFile,CFile::modeRead);
2. You can use a while loop to iterate through the file for that you can do something like this
CString str;
while(myFile.ReadString(str))
{
}
return -1;