CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Hex Hassle Please Please Help!



>  If, for example v=9, the file has the data="09", if v=11, data="0B",etc
>  BUT, if v=10, the data seem to include a new byte, with the output as
>  "0D0A". This happens every time either one of the bytes goes to "0A",
>  but not at any other time. 
>  
>  If anyone knows why this is, I would be VERY grateful if you could let
>  me know, and whether or not there is a solution.

Your file is in TEXT mode, and it is changing your carrage returns (0x0A) to
line feed (0x0D), carrage return (0x0A) pairs.  Which is what you would wish it
would do if you were writting to a TEXT file.  To a binary file, that is the
last thing you want.

I have not used binary files in some time, will have to research it.
-- Clifton Mayo


W Komornicki's Home Page | Main Index | Thread Index