Announcement

Collapse
No announcement yet.

i am confused!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • i am confused!

    hello sir,

    i just want to create a text file in c:\pass

    i want to store an username (that user inputs) in this file. i am unable to create text file. i continuously getting the error "could not save the text file"

    after searching a lot i found no idea! PLEASE HELP

    MY CODE IS BELOW:

    Folder.Create("C:\\pass");
    username = Input.GetText("Input1");
    TextFile.WriteFromString("c:\\pass\info.txt", username , false);

    error = Application.GetLastError();
    -- If an error occurred, display the error message.
    if (error ~= 0) then
    Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);
    end

  • #2
    That should be
    Code:
    TextFile.WriteFromString("c:\\pass\[highlight][b]\[/b][/highlight]info.txt", username , false);
    Please make sure that you check the documentation for a full explanataion.

    Ulrich
    Last edited by Ulrich; 01-25-2015, 06:03 PM.

    Comment


    • #3
      Thank you

      Thank you sooooooo much!

      Comment

      Working...
      X