Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004
    Posts
    47

    Import data from a text file

    OK, another new guy question:

    Is there a function like INIFile.GetValue that can do the same thing with a text file?

    I need to read a text file and put a version and build date into variables.

    The contents in the text file are always different but someplace in the first 2-15 lines are the following text:

    Version 4.2.2148
    Build Date Thursday, March 25, 2004 12:40 PM

    Should I just read the file looking for "Version " and capture everything to the end of line and store that.... then repeat to search for "Build Date "? Or is there a better way?

    ** The goal - Display the Version Number and Build date of the software within the CD. AMS5.0 being used as a Front End to launch other installations - The software installation folder always contains a vernfo.txt file that contains that data.

    Looking for some experienced opinions here. Thanks!
    - Hey Captain, we hooked up Data to the internet... Wanna see what he can do?

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hi. Either of the TextFile.Read actions (to string or table) will work great to grab that info. The help file has examples of both...

    Corey Milner
    Creative Director, Indigo Rose Software

Similar Threads

  1. Writing Text to a File
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-22-2003, 02:02 PM
  2. Getting data from an internet text file into AMS
    By User1 in forum AutoPlay Media Studio 4.0
    Replies: 3
    Last Post: 07-13-2003, 02:46 PM
  3. Replies: 0
    Last Post: 06-22-2003, 06:47 AM
  4. Text File Actions
    By csd214 in forum Setup Factory 6.0
    Replies: 0
    Last Post: 12-06-2001, 12:50 AM
  5. Replies: 0
    Last Post: 08-17-2000, 02:29 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