A 'cut' or 'extract' command, which will extract part of a file, and put it
in another file. The memory requirements are dynamically chosen, so you can
cut even very large files, but memory available will still be put to best
use.
Usage: Cut FROM <input> TO <output> [START <start offset>] [LENGTH <bytes>]
- <input> is the file which you are going to cut a chunk from.
- <output> is the name of the file where this chunk will be saved as.
- <start offset> is where you want to start cutting from.
- <bytes> is how many bytes you want to cut.
Special features:
- if you do not give a start offset, it is assumed you want to cut from the
beginning of the file.
- if you do not give a length, it is assumed you want to cut until the end
of the file.
- if you give a negative number as the start offset, it is interpreted as
an offset from the end of the file.
Notes:
- You will get the message 'seek failure' if the start offset is beyond the
end of the input file.
- If you try to start cutting before the start of a file, or end cutting
beyond the end of the file, this will be rounded to the file boundaries.
- You will have trouble with files greater than 2 Gigabytes in size.
Requires 2.0 or better.
****************************************************************************
* THIS PROGRAM IS PART OF THE "KYZER'S SMALLS" COLLECTION *
* The KyzSmlClxn is a set of small yet useful commands. *
* *
* Commands are installed by copying them to your C: directory. *
* Source is included, and is licensed under the GNU GPL version 2. *
* *
* Email Kyzer/CSG <kyzer@4u.net> or see the website at http://zap.to/kyz *
****************************************************************************
|