string str = "myfile.txt";
FILE* fptrIn;
if (! (fptrIn = fopen (str.c_str(), "r")))
{
return; // ggf. Trace, message box, etc.
}
char buff [1024];
while (fgets (buff, 1023, fptrIn))
{
// entweder parsen mit sscanf
int x, y;
if ( 2 == sscanf (buff, "%d, %d", &x, &y)) // z.B.
{
}
// oder string intialisieren und weiter verarbeiten
string blabla (buff);
}
fclose (fptrIn);