Hi,
I've just finished coding a database program which saves info to a file currently defined as "mb.dat".
The problem is I want the user to give the filename when prompted.
So how can i save a string variable that I can use in the following code?
FILE *fp;
fp = fopen("variable","wb"); /* open file for writing */
I've had a go at using stringcpy and defining the varible as type CHAR but I'm going wrong somewhere as the compiler just shouts at me!
I'm a beginner so please go easy. Thanks.