I'm starting programming in C, and would like to write the program in such a way that I can open any file, rather than one specified in the middle of the code.
I can't work out how to get the file name specified after the line
printf("Please enter your file name");
to then be used to open the file in the line
fprintf("[needs to point to name]", "a");
(I want to write data to the end of the file hence a for append)
Any help would be greatly appreciated