Qbasicnews.com

Full Version: How could you give the user a choice of a filename to save?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
How would you input the user to save a file with the choice of the filename? I want to prompt the user to save the settings of the game, with the extension of .dat. How would I do those? Cheers.
Code:
LINE INPUT "filename? (no ext.): "; filename$
filename$ = filename$ + ".dat"

f%=FREEFILE

OPEN filename$ FOR OUTPUT AS #f%  ' or whatever
' save stuff
CLOSE #f%
Oh I right, I knew that Wink Thanks Lebron!
If you knew that why did you ask, Toribio?
Oh, didnt you see me include the "Wink" face? That means I was just kidding. Tongue Cheers.
Interesting... they have names for eachother... Must remember, Na_th_an is Lebron... and the other guy is Toribio..... :bounce:
Quote:If you knew that why did you ask, Toribio?
Nathan, are you sure this guy's name is not Abundio, like in "mas tonto que Abundio"?
*****
Actually, I think his name is "carajo", as in "vete pal carajo".

Just kidding, of course. :rotfl: :rotfl: :rotfl:
*scratches head*

*Wishes he hadn't slept through Spanish III last year*

*sigh*

Oh well.
Guys, just to let you know, I DO understand Spanish. -_-
Pages: 1 2 3 4 5