Solved

File size vs Actual Size

Posted on 2009-06-28
4
195 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
NotAlone Challenge 20 88
Message not shown 5 87
moto 4g phone enable finger print 4 48
Retrieving files from XP Mode that were saved to an external drive 3 31
If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
I recently asked a question (http://www.experts-exchange.com/Programming/Smartphones/Android/Q_28684946.html) about Computer Inventory applications for Mobile Devices.  I was specifically interested in an app I could use on my android phone.  The be…
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…

726 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