Hi,
I am using the following code, which successfully writes a file to the location below...
But I would like the user to be able to specify where to save the file...Code:FILE *fp = fopen("/Users/me/Desktop/database456abcXa.txt", "w"); if (fp != NULL) { fprintf(fp, "Hello, world. This is a file output... Hopefully."); fclose(fp); }
so rather than giving it "/Users/me/Desktop/database456abcXa.txt"
I would like to give it values (defined elsewhere), to be something more like:
fopen( Directory1 "/" Directory2 "/database456abcXa.txt", "w");
(you get the idea...)
How do I do this...
thanks!