Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Posts
    20

    Grin 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

  2. #2
    Join Date
    Mar 2009
    Location
    -31.9554,115.85859
    Posts
    282
    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);

  3. #3
    Join Date
    Mar 2009
    Posts
    20

    Thanks

    Thanks!

    I'll try it!

    ~Nitro

Similar Threads

  1. Creating a hard return in a text file
    By Reddof Nonnac in forum Setup Factory 7.0
    Replies: 3
    Last Post: 01-10-2008, 08:45 AM
  2. How to save data from text fields and checkboxes to a file?
    By D0M1N0R in forum AutoPlay Media Studio 6.0
    Replies: 10
    Last Post: 10-02-2006, 01:24 PM
  3. Error 3038: Could not seek in compressed file
    By Rikard in forum Setup Factory 7.0
    Replies: 2
    Last Post: 05-25-2006, 11:55 AM
  4. Formating a text or htm file HELP !!!!
    By lance in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 08-30-2005, 11:42 AM
  5. Populate a List box with text file names
    By Bruce in forum AutoPlay Media Studio 4.0
    Replies: 6
    Last Post: 10-29-2003, 09:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts