char * buff
fread(buff,size of(char *), 1, fr);
while(!feof(fr) )
{
fwrite(buff, sizeof(char *), 1, fw);
fread(buff,size of(char *), 1, fr);
}
fread(memblock, sizeof(char), 1, fr);
fwrite(memblock , sizeof(char), 1, fw);
hi this is working in windows
when i am trying to copy in linux..only the end fo file character is unable to copy to the fw. please anyone tell me how to write the eof(fr) to fw.
thanks
fread(buff,size of(char *), 1, fr);
while(!feof(fr) )
{
fwrite(buff, sizeof(char *), 1, fw);
fread(buff,size of(char *), 1, fr);
}
fread(memblock, sizeof(char), 1, fr);
fwrite(memblock , sizeof(char), 1, fw);
hi this is working in windows
when i am trying to copy in linux..only the end fo file character is unable to copy to the fw. please anyone tell me how to write the eof(fr) to fw.
thanks
Comment