Hi. I'm using VB6 and trying to read in a simple text file. I'm
using a statement similar to the following, which generally works
fine.
Input #Item, variable1, variable2, variable3, etc.
The problem is that one of the strings that is read in, variable2 in
the above example, is a square symbol, . An error is thrown, and I
can't find a way to work around it. (I'm stuck reading in that
symbol, i.e. I can't just change it in the text files, which would
solve the problem.)
I've tried using an ErrorHandler and Resume Next, but that symbol
seems to mess up the whole row of input, so I can't break up the above
statement into several Input statements and read the line variable by
variable using several Input statements like the following:
Input #Item variable1
Input #Item variable2
....
I don't know how VB interprets the symbol, and so can't figure out a
way around it. I'd really appreciate any help. Thanks.
Justin
using a statement similar to the following, which generally works
fine.
Input #Item, variable1, variable2, variable3, etc.
The problem is that one of the strings that is read in, variable2 in
the above example, is a square symbol, . An error is thrown, and I
can't find a way to work around it. (I'm stuck reading in that
symbol, i.e. I can't just change it in the text files, which would
solve the problem.)
I've tried using an ErrorHandler and Resume Next, but that symbol
seems to mess up the whole row of input, so I can't break up the above
statement into several Input statements and read the line variable by
variable using several Input statements like the following:
Input #Item variable1
Input #Item variable2
....
I don't know how VB interprets the symbol, and so can't figure out a
way around it. I'd really appreciate any help. Thanks.
Justin
Comment