StealthFD
04-28-2004, 04:01 PM
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!
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!