Exppedition, How do I read a .txt file containing ASCII data such as part number, description, designer name ... and populate this data into a VBscript/HTA form?edition,
Not sure if VBscript has this capablilty but in vb.net you can use a StreamReader to extract information from a text file. Might be worth looking into.
Use the Scripting.FileSystemObject to read/write text files, is is very easy.
Dim FSO : Set FSO = CreateObject("Scripting.FileSystemObject")
Dim FP : Set FP = FSO.OpenTextFile("path_to_file")
Do While Not FP.AtEndOfStream
Dim sLine : sLine = FP.ReadLine
' parse the line of text; the regular expression object (RegExp) comes in handy
After doing some research over the weekend I found the same answer and was able to my import VB script to work. Thanks all for your comments.
Retrieving data ...