Question about reading file
I'm reading a file into an array where I'd like to not have it include commas into the string it reads into. Currently with the code below, when it encounters a comma or a new line it loads into a separate array. Can I specify the character I use to separate the file to something other than a comma?
Open varDir For Input As #5
Do Until EOF(5)
Input #5, strAllString(i)
i = i + 1
Use LINE INPUT - this will read line by line into a string (incl commas) and you can then parse it yourself (incl removing commas if you want to).
You may want to look at the Split function as well.
Last edited by gupex; 02-27-2005 at 08:04 PM.
Worked perfectly, thanks!
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center