On Mon, 07 Mar 2011 11:26:25 -0000, yochi <yoc...@gmail.com> wrote:
Hello, I am trying to write an integer to a file, but when I open the
file it writes the char the number represents in ascii.
does anyone have a suggestion?
Post your code, people can then suggest changes. Also, some things to
consider:
- Are you opening the file in ascii or binary mode?
- Are you calling a function which writes an integer?
It sounds, from your description, that you're writing an integer 'as a
char/byte' which probably means you've called the wrong function.
--
Using Opera's revolutionary email client: http://www.opera.com/mail/