Name:
Anonymous
2009-04-29 20:57
#include <stdio.h>
int main(int argc, char **argv)
{
FILE *f = fopen(argv[1],"rt")
fseek(f,0,SEEK_END);
int length = ftell(f);
fseek(f,0,SEEK_CUR);
char fdata[length];
fread(f,1,length,ftell);
fclose(f);
f = fopen("output.txt","wt");
fwrite(fdata,1,length,f);
fclose(f);
return 0;
}
Name:
Anonymous
2009-04-30 20:12
>>37
I did one of those things where I was about to ask why Neil Stephenson would write gay erotica about Alan Turing, but then I ended up not asking.