How do I save text from a input box into a text file?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • nitro
    Forum Member
    • Mar 2009
    • 20

    How do I save text from a input box into a text file?

    I'm trying to make a sort of "chat" kind of thing...

    Where i type a message, I click a big button that says "SEND" or "SAVE" and later, when my sister gets on, she can click "READ" or "OPEN" and it will show the text put into the file in a paragraph object... and she can do the same thing, type a message and save, so i can read it later...

    Yes, yes, i know, why not just use EMAIL, OR NOTEPAD? well, i thought it would be fun to make my own program to do this kind of thing... I just can't figure out HOW...

    I'm not all that good with AMS scripting, I can make simple stuff, but I can't script if my life depended on it...

    Hoping for a quick reply,
    ~Nitro
  • boku
    Indigo Rose Customer
    • Mar 2009
    • 283

    #2
    Code:
    -- The string to save
    new_contents = Input.GetText("InputBox1");
    
    -- Write out the modified contents of the text file.
    TextFile.WriteFromString("C:\\MyFile.txt", new_contents, false);
    - BoKu -

    Comment

    • nitro
      Forum Member
      • Mar 2009
      • 20

      #3
      Thanks

      Thanks!

      I'll try it!

      ~Nitro

      Comment

      Working...
      X