Solved

File size vs Actual Size

Posted on 2009-06-28
4
191 Views
Last Modified: 2013-12-27
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
0
Comment
Question by:JSMCM
4 Comments
 
LVL 19

Accepted Solution

by:
alb66 earned 125 total points
ID: 24734045
Pack some file together in order to have less bigger files
0
 
LVL 44

Assisted Solution

by:AndyAinscow
AndyAinscow earned 125 total points
ID: 24734085
8000 binary files would still require 8000 blocks of space.  Can you get at a 'zip' library of some kind to create one (or a few) files that contain the individual text files.
0
 
LVL 2

Author Closing Comment

by:JSMCM
ID: 31597802
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
0
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 24734200
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.
 
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now