redss has asked for the wisdom of the Perl Monks concerning the following question:
I want to take a series of numbers, each number between 0 and 255, and write each number to an ASCII file as a single character.
How can I write each number to the file as an ASCII character, and then convert each character back to the number when reading from the file?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: how to convert numbers to ASCII characters
by olus (Curate) on Jan 24, 2008 at 14:04 UTC | |
Re: how to convert numbers to ASCII characters
by moritz (Cardinal) on Jan 24, 2008 at 14:05 UTC | |
by redss (Monk) on Jan 24, 2008 at 14:37 UTC | |
by lidden (Curate) on Jan 24, 2008 at 14:43 UTC | |
by redss (Monk) on Jan 24, 2008 at 14:51 UTC | |
Re: how to convert numbers to ASCII characters
by shmem (Chancellor) on Jan 24, 2008 at 17:36 UTC | |
by ikegami (Patriarch) on Jan 24, 2008 at 17:54 UTC | |
by shmem (Chancellor) on Jan 24, 2008 at 17:59 UTC | |
Re: how to convert numbers to ASCII characters
by oxone (Friar) on Jan 24, 2008 at 16:50 UTC | |
Re: how to convert numbers to ASCII characters
by ikegami (Patriarch) on Jan 24, 2008 at 17:38 UTC |