error using "sick" text file with character > 255
-
I have to parse file that contains (some times) character > 255, this is due to some problem with the device that writes the file. Does anybody know how to handle this case with ifstream ? Jonathan de Halleux.
-
I have to parse file that contains (some times) character > 255, this is due to some problem with the device that writes the file. Does anybody know how to handle this case with ifstream ? Jonathan de Halleux.
Not sure I understand - a
char
by definition can't be greater than 255. :confused: --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber Ericahist updated (again) Sep 6! -
Not sure I understand - a
char
by definition can't be greater than 255. :confused: --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber Ericahist updated (again) Sep 6!The file is mixture of binary and text data. Normally, the device writes character < 255 but sometimes it screws up and write random bits which can be > 255: Here's the kind of text I get: 1ŠÂ‚b¢ºb’šb¢‚R5,$ ??? Jonathan de Halleux.
-
Not sure I understand - a
char
by definition can't be greater than 255. :confused: --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber Ericahist updated (again) Sep 6!was another bug, soory Jonathan de Halleux.