JA>scanf("%s", fName);
JA>/* Now i want to open the file using the first name string */
JA>fileName="C:\\%s.ext", fName;
?!!? This doesn't work. Try
sprintf(fileName,"C:\\%s.ext",fName); <- puts the filename with extensin
.ext into the fileName variable.
JA>fptr = fopen(fileName, "w");
JA>bla bla bla
JA>fclose(fptr);
JA>but it doesnt work... any ideas?
hopefully that helps!
* SLMR 2.1a * This tagline stolen by Silly Little Mail Reader!
--- FMail 0.92
---------------
* Origin: The Programmer's Oasis on FIDONET! (1:348/203)
|