Save data in .txt format

  • Thread starter Thread starter Louis
  • Start date Start date
L

Louis

I tried to use below code to open text file to search
(part,description,unitPrice):

Open myFile For Input As #2
Input #2, str1
Close #2

I do not know why str1 can not pull out the description
when there is a "," in the record.

Anyone can suggest a book for me to read ?

Please advise.
Thank you a lot.
Louis
 
The LineInput command will read the entire line into the variable. Input
will just read up to the first comma.
 
Back
Top