,David7738 wrote


They are not int's to begin with they are char's or strings the character 2 will come in as int 32 space as int 20 as the file is not a binary file but a 'text' file. so up to the newline we have

32 20 31 31 20 33 20 31 30 0d 0a



i have seen a few posts here and in the techoff area where the OP's use terms in a very confusing way....   they seem to not really know the difference between a text file and a binary file.

and nowdays with UNICODE it's possibly worse than the old days of simple ascii text files!

reading a char may or may not be the same as reading a byte if the file is saved as unicode.