Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Posts
    4

    Importing and Exporting txt. files???

    I have seen an example of this but this is what im looking to do... I would like to be able to hit a button allowing me to open a text file in a "INPUT" field which would then allow me to edit the text and then once edited. i would like to be able to hit a separate button allowing me to save the changes...Is this possible and could some one share an example script or file

  2. #2
    Join Date
    Nov 2003
    Location
    Salzburg / Austria
    Posts
    312
    use actions like

    Button Load
    _String=TextFile.ReadToString("Path+YourFilename")
    Input.SetText(input1, _String);


    Button Save
    _String = Input.GetText(input1);
    TextFile.WriteFromString("Path+YourFilename",_Stri ng,false)

    Stefan

  3. #3
    Join Date
    Jun 2004
    Posts
    113
    This works:

    Load Button:
    result = TextFile.ReadToString("AutoPlay\\Docs\\file.txt");
    Input.SetText("Input1", "" .. result);


    save Button:
    result = Input.GetText("Input1");
    TextFile.WriteFromString("AutoPlay\\Docs\\file.txt ", "" .. result, false);


    Obviously the name of you text file would be "file.txt" , and your input box is called "input1"

Similar Threads

  1. Exporting and Importing actions in SF6?
    By Martin_SBT in forum Setup Factory 6.0
    Replies: 1
    Last Post: 11-21-2002, 09:30 AM

Posting Permissions

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