f = fopen("filename", "r");
c = fgetc(f);
if(c < 0) {
fclose(f);
system("type filename > filename.tmp");
f = fopen("filename.tmp", "r");
}
else {
rewind(f);
}
while(fgets(buff, 256, f) != NULL)
puts(f);
fclose(f);
return(0);
}
Name:
Anonymous2012-01-13 10:57
>>44
You can read it in K&R you stupid piece of shit, it was even forced in the new edition of Perl but I can't expect your monkey ass to be intelligent enough to read rationale written by people who are infinitely more intelligent than you.