Save data in .txt format

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
 
R

Roger Carlson

The LineInput command will read the entire line into the variable. Input
will just read up to the first comma.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top