CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hex Hassle Please Please Help!
Richard,
You must open your file in BINARY mode. The flag value you use depends on which
kind of file object you are using. In the DOS/WINDOWS world, the default file
mode is TEXT, which assumes a value of 0xA is a line feed and automatically
adds an 0xD (carriage return). This is a holdover from the days when output was
done on teletype (TTY) devices. On those devices, a line feed did only that --
moved the print head to the next line, in the same character position. It was
necessary to send a carriage return to move the print head to the beginning of
the line.
Jack Romanowicz
W Komornicki's Home Page |
Main Index |
Thread Index