[REBOL] Re: file splitting howto?
From: antonr:lexicon at: 16-Jun-2004 15:29
This is not as easy as it sounds.
I am close to a solution using
And yes, copy/part is used too, but in my algorithm,
it is not used to specify the 1MB chunks directly, but
smaller chunks (which are later joined).
I found a problem was the length of the line terminator
can be different by platform.
Unix uses LF, Mac uses CR, and Windows uses CRLF (two characters).
Being two characters means that a split at the wrong place could
split a line terminator in half, so the end of one partial file
has the CR, and the beginning of the next partial file has the LF.
I am interested what you are splitting. I assume it is a log
file of some sort ?