This should be a trivial excersize, but for some reason I'm getting a problem
when I read a text file. I'm reading a list of strings in text file, with one string per line. The first line has extra characters in the string, the rest of the lines read are fine, and I can't understand where the extra characters come from. Any ideas?
The file format is this...
A
AA
AAN
AAP
AAPL
AAWW
AAXJ
....
...
This should be a trivial excersize, but for some reason I'm getting a problem
when I read a text file. I'm reading a list of strings in text file, with one string per line. The first line has extra characters in the string, the rest of the lines read are fine, and I can't understand where the extra characters come from. Any ideas?
It would help if you attached the actual file you're reading instead of typing in what you think is in the file. The character may be a non-visible control character or some other character that you do not expect.
Bookmarks