[cs33211] Re: Proj 3 question

Mikhail Nesterenko mikhail at cs.kent.edu
Fri Apr 17 17:06:57 EDT 2009


> 
> "Notice that a block can be partially filled and the program
> should use the file size to determine where the file data ends."
> 
> So what is the file size defined by? The number of blocks that have
> information for the file inside of it? Or the number of bits used by
> the file?
> 
> If we're to count partial blocks then I guess we'll need to count bits?

The file size is in bytes. You can assume that you will not be writing
"partial character" there. So just keep the number of bytes. Note that
each block in the project is 10 bytes.

Thanks,
-- 
Mikhail


More information about the cs33211 mailing list