|
|
|
#1
|
||||
|
||||
|
Zitat:
Code:
#include <io.h>
#include <stdio.h>
int main()
{
FILE *file;
char ch;
if(!(file = fopen("c:\\test.txt", "rb")))
{
printf("Unable to open file\n");
return 1;
}
while(!feof(file))
{
ch = (char)fgetc(file);
printf("%c", ch);
}
fclose(file);
getchar();
return 0;
}
Die MSDN sagt zu feof() folgendes Zitat:
|
|
#2
|
||||
|
||||
After, nicht at.Naja. Blöde Fehler, auch gedanklich, gehören einfach dazu Danke noch mal.
__________________
I ELUCIDATE THE TRUTH OF A CASE FROM NOW ON! |