TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: FRANK MASINGILL
from: JABO
date: 1998-02-28 10:20:00
subject: sup?

WELl
i can try :)
how can  i get C++ to open a file with a string?
EX.
FILE* fptr;
main(){
 char fName[20];
scanf("%s", fName);
/* Now i want to open the file using the first name string */
fileName="C:\\%s.ext", fName;
fptr = fopen(fileName, "w");
bla bla bla
fclose(fptr);
but it doesnt work...  any ideas?
--- Maximus/2 3.01
---------------
* Origin: A Place Called Joe's (1:106/977)

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™.