I have made client server communication and I am sending and recieving Files.
I am using file pointer and fread and fwrire commands to read and write file.
I am able to read and write .txt,.GIF files.but I could not write .doc file.
I am opening file in binary mode only.
I am reciveing file with same size as I sent. but after opening .doc file I got an error that "word was unable to read the file".
can any one tell me what might be the reason behind that?
do I need any special code to read and write .doc file?