Solved

Splitting a File

Posted on 1997-04-10
5
139 Views
Last Modified: 2010-04-06
I've an application that backs up its data files (Paradox 5.0) to disk. Some of the files are now larger than a 1.44Mb floppy, so I need to split them and splice them together again if a restore is required
Is this a simple procedure, and if so, could you point me in the right direction.
0
Comment
Question by:ericw
5 Comments
 
LVL 1

Expert Comment

by:jmataso
ID: 1335296
Have you considered compression schemes that also split files across floppies?  DynaZIP by Inner Media, Inc. (http://www.innermedia.com) is a VCL/OCX that can compress to/extract from PKZIP 2.04G format and can span floppies.  I don't know if this is what you are looking for, but it is a relatively painless way to program it (it does cost $299 to
by the 32-bit version, or $249 to buy the 16-bit one).

--->John
email: john.matasovsky@bigfoot.com
0
 

Author Comment

by:ericw
ID: 1335297
Yes, but not quite what I'm after.
Does this mean 'spanning' is not that easy?
0
 
LVL 3

Accepted Solution

by:
mheacock earned 30 total points
ID: 1335298
1) Open the file.
2) Read an entire chuck of data (perhaps 1 000 000 bytes),
   write this to a file (xxx.01)
3) Read next chunk (1 000 000 bytes or until end of file),
   write this to file (xxx.02).
4) Repeat 3 until end of file (last chunk read).

To resplice the files, read entire .01 file into memory,
write to original file (xxx.pdx, whatever), read entire
contents of file .02, write to xxx.pdx, repeat until all
.## files written to xxx.pdx.

This is about all you'll get for 30 pts.  Probably a lot more
than any other expert would give for 30 points.  I usually
won't even bother with a question less then 50 pts, but
a simple description to get you started was easy enough.

If you want code or more detail, then you'll have to bump the
points up to 100.
0
 

Author Comment

by:ericw
ID: 1335299
Thanks, Thats about as much as I need to get started.
0
 

Expert Comment

by:jonykarate
ID: 11543454
If you are still intersted in software that will automate this process for you, I found something when I was attempting to span a file over multiple disketts myself.  Let me know if you would be intersted.  I can try and find the site i downloaded it from of just send you the files.

Cheers,
Jon
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi 10 Seattle Dataset Actions 5 79
proper way to parse url in delphi 2 164
Create Database on Android via Delphi dbExpress 3 81
Printing problem 2 81
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

895 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

18 Experts available now in Live!

Get 1:1 Help Now