Solved

File size vs Actual Size

Posted on 2009-06-28
4
194 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java ^ examples 8 69
How to convert MFC::CString to UTF8 wchar_t* 10 286
active directory 5 64
Increment column based of a FK 8 31
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…
Let me explain this picture a little bit.  First, in case you haven't already guessed, you are looking at my 2 phones, an Android Samsung Galaxy S5 on the left and an iPhone 5 on the right.  They are on their respective cradles on my desk.  But, you…
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

828 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