TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JABO
from: ADAM MAJER
date: 1998-03-02 14:37:00
subject: sup?

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.