Link to home
Start Free TrialLog in
Avatar of JSMCM
JSMCM

asked on

File size vs Actual Size

Hi,

I am writing an app for a mobile type device running windows CE, using embedded visual C++. I need to copy files from the PC to the mobile device. There is about 8000 files, but each one is very small.

The problem is that even though they are small, the size on disk (block size) x 8000 means that I run out of space on the mobile device.

Is there any way around this? I am using normal text files.
Would a binary file be smaller?

Thanks,

John
ASKER CERTIFIED SOLUTION
Avatar of alb66
alb66
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JSMCM
JSMCM

ASKER

Hi thanks... I can't zip, but will use binary files (record based) and have a type of index file so I can locate records... at the moment, each file represents one record.

Anyway, thanks for your input
Another option - make one long file and an index file near it saying from which position begins new portion of the text and its size.
It will be better if the long file will be the binary and will contain the compressed text blocks.