The Daily Click ::. Forums ::. Klik Coding Help ::. Save a string to a file
 

Post Reply  Post Oekaki 
 

Posted By Message

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
12th April, 2011 at 18:29:40 -

Hello,

What is the best way to save a string to a file?

For example, saving GLOBAL STRING A to C:\string.txt

Thanks!

 
n/a

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
12th April, 2011 at 19:31:30 -

List object can do it. I'm sure there are some others that can as well, just check out all the text objects.

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49566

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
12th April, 2011 at 19:34:13 -

The best method is the edit box.

Create an edit box, check off multi-line in the objects setting and uncheck visible at start.

Then set the edit box to GLOBAL STRING A and use the save action.


Another method is to use the file object, but I can tell you from experience that it's buggy. It can only save so many char's at once, then it cuts off the rest of the data.
It happens randomly and it's unpredictable, so I just use the edit box for saving now.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click