Posted on 2003-11-04
I have some problems with a tab character. I have a binary file that I need to convert to Integers. I am reading each byte in the binary file and converting that to an integer by type casting.
My data contains some tab characters in between. So is the tab character read as one character or 4 spaces. This tab character is screwing my output file.
I want to know how to deal with these tab characters.
Thank you very much for your help.
ifstream infile("Data.txt", ios::in|ios::binary);
char data, datamsb;
outInt = data;