My script in C++ give me this result without any errors:
1 2 Press any key to continue...
This is my program:
const char* fileName = "kwerendy.txt";
FILE * file = fopen(fileName, "r");
while (! feof(file))
{
printf("1\n");
char* row;
printf("2\n");
fgets(row, 1000, file);
printf("3\n");
int i = 0;
printf("4\n");
cout << "TEXT (line[" << i << "]): " << row;
}
Have you any ideas, because I don't know how to repair this.