Thanks Barney......will keep that in mind.....
Type: Posts; User: ratnakar
Thanks Barney......will keep that in mind.....
Ok. I understood the significance of not using feof. Thanks everybody.............
Oh I still am using the feof. Let me read that link posted by anduril. I will post here what I discover
anduril, I changed int to char in my program and I tried copying a pdf file. I saw the results of two files by 'ls -l' command. I still get 1 more byte in the new file. Why is that ?
thanks. I didn't get email notification , so I saw this late. I know that char type takes 1 byte at a time, but is 'char' not limited from 0 to 255 ?
Hi
I am new here. Here I was trying to write a program to copy one file to another.
#include <stdio.h>#include <stdlib.h>
int main(int argc, char *argv[])