sedj
Programmer
- Aug 6, 2002
- 5,610
Hi, how do I go about copying a file in C in one large chunk. At the moment I am doing :
Thanks for any help.
--------------------------------------------------
Free Database Connection Pooling Software
Code:
FILE* fileIn = fopen("in.txt", "r");
FILE* fileOut = fopen("out.txt", "w");
int c;
while ((c = getc(fileIn)) != EOF) {
putc(c, fileOut);
}
fclose(fileIn);
fclose(fileOut);
Thanks for any help.
--------------------------------------------------
Free Database Connection Pooling Software