Hi,
Is there way to save the whole filename and its extension. Right i now i have a client/server application where client sends a file(for example test.jpg) server save the data of that file with specified filename "copy-client". It dose not saves the filename and its extension.
How do i save the filename and its extension?
Code:FILE *fp = fopen("copy-client", "w" ); fwrite(buffer, sizeof(buffer), current, fp);