Quote Originally Posted by Alix View Post
I know this works, but is not the solution. Fore example if i send next time a "test.txt" file, server must save filename and the extension of the data as it is, in this case as "test.txt" . I dont need to change by hand everytime.

Seriously?

Code:
char filename[256];

// put client's filename in filename[]


fp = fopen(filename,"w");
Seems pretty obvious...