I am traing to read and then to write.
I don't know why but I have to write before reading.
It doesn't work this way:
HELP plz \:Code:FILE *in, *out; int i, max; in = fopen ("x.txt","rt"); if (in == NULL) return 0; for (max = fgetc(in);!feof(in);max += fgetc(in) * i) i *= 10; fclose(in);