University of Toronto - Spring 2001
Department of
Computer Science
Assignment One
Assignment 1: File Encoding
- Hints, tips, and announcements
<-- Read this regularly.
- Handout in postScript or in
Adobe pdf format
- Advice in postScript or in
Adobe pdf format
- An example c++ program bitwiseIO.cc which
demonstrates manipulation of individual bits in a buffer.
- Now available A second
example c++ program buf.cc which
demonstrates using a buffer longer than one character.
- encoding1.txt
- A simple file test1.txt that you can encode
with
test1.txt
If you downloaded this file over the weekend
then you should replace your dowloaded version
with this new one. See the announcements to understand why.
- encoding2.txt is another file containing a
sample set of codes
- and the corresponding text file test2.txt
that you should try encoding with
encoding2.txt
Notice that encoding2.txt
contains a code for /n
or the end-of-line character. This is required because test2.txt
has multiple lines. When you look at encoding2.txt
with an
editor it will show up on two lines because the editor will display
/n
by starting a new line.
- Some basic pointers
for using od to view your binary files.