Qbasicnews.com
February 26, 2020, 01:43:39 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1] 2 3
  Print  
Author Topic: How could you give the user a choice of a filename to save?  (Read 9852 times)
moochthemonkey
I hold this place together
*****
Posts: 801



« on: June 30, 2004, 08:10:28 PM »

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

quote="na_th_an"]
Greenday, Spice Girls... Can you tell the difference?
[/quote]
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #1 on: June 30, 2004, 08:57:22 PM »

Code:
LINE INPUT "filename? (no ext.): "; filename$
filename$ = filename$ + ".dat"

f%=FREEFILE

OPEN filename$ FOR OUTPUT AS #f%  ' or whatever
' save stuff
CLOSE #f%
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
moochthemonkey
I hold this place together
*****
Posts: 801



« Reply #2 on: June 30, 2004, 08:59:25 PM »

Oh I right, I knew that Wink Thanks Lebron!
Logged

quote="na_th_an"]
Greenday, Spice Girls... Can you tell the difference?
[/quote]
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #3 on: June 30, 2004, 09:00:22 PM »

If you knew that why did you ask, Toribio?
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
moochthemonkey
I hold this place together
*****
Posts: 801



« Reply #4 on: June 30, 2004, 09:05:46 PM »

Oh, didnt you see me include the ";)" face? That means I was just kidding. Tongue Cheers.
Logged

quote="na_th_an"]
Greenday, Spice Girls... Can you tell the difference?
[/quote]
NovaProgramming
Been there, done that
*****
Posts: 1025



« Reply #5 on: June 30, 2004, 09:46:14 PM »

Interesting... they have names for eachother...  Must remember, Na_th_an is Lebron... and the other guy is Toribio.....  :bounce:
Logged

ovaProgramming.

One night I had a dream where I was breaking balls.  The next morning, BALLSBREAKER was born.

Quote from: "Haye, Phillip J."
 Excellent.  Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
Moneo
Na_th_an
*****
Posts: 1971


« Reply #6 on: July 01, 2004, 11:08:10 PM »

Quote from: "na_th_an"
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"?
*****
Logged
adosorken
*/-\*
*****
Posts: 3655



WWW
« Reply #7 on: July 02, 2004, 02:54:46 AM »

Actually, I think his name is "carajo", as in "vete pal carajo".

Just kidding, of course. :rotfl:  :rotfl:  :rotfl:
Logged

I'd knock on wood, but my desk is particle board.
NovaProgramming
Been there, done that
*****
Posts: 1025



« Reply #8 on: July 02, 2004, 12:30:02 PM »

*scratches head*

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

*sigh*

Oh well.
Logged

ovaProgramming.

One night I had a dream where I was breaking balls.  The next morning, BALLSBREAKER was born.

Quote from: "Haye, Phillip J."
 Excellent.  Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
moochthemonkey
I hold this place together
*****
Posts: 801



« Reply #9 on: July 02, 2004, 06:38:45 PM »

Guys, just to let you know, I DO understand Spanish. -_-
Logged

quote="na_th_an"]
Greenday, Spice Girls... Can you tell the difference?
[/quote]
Bluffer
Guru
**
Posts: 259


« Reply #10 on: July 02, 2004, 10:06:11 PM »

*scratches his head & . well never mind ,wishes he had took spanish, or chinesse or for the fact, english when he went to school.*

ohh wait that was in 8th grade lol sry I missed 8th grade  Sad
Logged

unescape.com
Massive online role playing game
Free to play
Moneo
Na_th_an
*****
Posts: 1971


« Reply #11 on: July 02, 2004, 10:43:45 PM »

Quote from: "Offensive Screename"
Guys, just to let you know, I DO understand Spanish. -_-

If you really knew Spanish, you would have remarked in Spanish. :roll:
Logged
moochthemonkey
I hold this place together
*****
Posts: 801



« Reply #12 on: July 03, 2004, 02:22:17 AM »

¡CMALDÍGALO! :bounce:
Logged

quote="na_th_an"]
Greenday, Spice Girls... Can you tell the difference?
[/quote]
Moneo
Na_th_an
*****
Posts: 1971


« Reply #13 on: July 03, 2004, 08:22:11 PM »

Quote from: "Offensive Screename"
¡CMALDÍGALO!

I thought you said you understood Spanish. What you said means absolutely nothing in Spanish, although the last part of the meaningless word could sound something like a curse, i.e., maldición --- maybe you speak Papiamento or some other Spanish-based dialect. :rotfl:
*****
Logged
moochthemonkey
I hold this place together
*****
Posts: 801



« Reply #14 on: July 03, 2004, 09:42:43 PM »

Hmm, unless if I spelled it wrong CMALDÍGA means "DAMN" and "LO" Means "IT".
Logged

quote="na_th_an"]
Greenday, Spice Girls... Can you tell the difference?
[/quote]
Pages: [1] 2 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!