working in bits

  • Thread starter Thread starter philipl
  • Start date Start date
P

philipl

hi,

I have to check files sizes to see if they are within a certain size.
I can easily do this in decimal. But I want to learn how to do this
with bit manipulation. Does anyone know how i can do this?

I want filesize to be bigger than 0 and < 10MB.

thx
 
I am not sure I understand what you are trying to do. You can check the
size of a file by accessing the Length property of the FileInfo class. What
do you mean when you say you want to learn to do this with bit manipulation?
 
Hi,

Your question is not very clear, did you by any changes are refering to
bytes instead of bits?

or you are looking into using a bitoperator to do the comparation, something
like:
if fileInfo.Length OR 10000000000 /*binary representation of 10MB*/ > 0

if is the latter, then it's a nonsense IMHO.

cheers,
 
Back
Top