Solved

Splitting a File

Posted on 1997-04-10
5
137 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

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

18 Experts available now in Live!

Get 1:1 Help Now