Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / .txt files

Author
Message
FROGGIE!
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 9th Mar 2004 20:44
ive got a .txt file(below)



how can i read the file and put the variables into the prog?

my games are only as good as the people who play them...
so if my game is crap then its your f******g fault!
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 9th Mar 2004 21:11
Allright.. lose the Playername$ = ...

Make this:

into:


Assuming that that is what you have in your .txt file.

Then in your program you use (assuming that your .txt file is called player.txt):



Hope I've Helped

The Dream Keeper!

Bring fun to life!!!!!
FROGGIE!
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 10th Mar 2004 13:59
thnx ill try it soon

my games are only as good as the people who play them...
so if my game is crap then its your f******g fault!

Login to post a reply

Server time is: 2025-05-23 08:55:58
Your offset time is: 2025-05-23 08:55:58