Jump to content
  • Advertisement
Sign in to follow this  
JamKing

blitz3d txt saving

This topic is 3711 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i was wondering if it is possible to save the text that is put in by the input command to a txt file or something, or am i just making ideas up?

Share this post


Link to post
Share on other sites
Advertisement
I might have misunderstood the quesion but the response to the Input command can be saved to a string variable. This variable can then be output to a file.

Share this post


Link to post
Share on other sites
hi,

yes, you just use the writestring command

the sytax is:

writestring(stream,string$)

i.e.
writestring(myfile,"hello world!")

would write the string "hello world" to the myfile file stream.
You open a file to write to with:
myfile = writefile("myfile.dat")

If you have a string, say mystring$ = "hello bob!"
then you can write:
writestring(myfile,mystring)


The online manual page is here:
http://www.blitzbasic.com/bpdocs/command.php?name=WriteString&ref=2d_cat

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!