I intend to copy file, i'm using function fgets to get each record and then put it into the new file....but......it doesn't work the destination file contains nothing,
handle=fopen("karyawan.dat","w"); // the destination file
temporer=fopen("temp.$$$","r"); // the source file
while(fgets(kodec,53,temporer)!=NULL)
{fprintf(handle,"%s",kodec);
}
by the way......it seems to work...i mean i could exit the program..but when i check the file it's nothing......