ARexx (69/77)

From:sarkis simon
Date:26 Apr 2001 at 23:56:39
Subject:Re: splitting a html file

--- In arexx@y..., "Neil Bothwick" <neil@w...> wrote:
> sarkis simon said,
>
> > Have batchfactory ver1.and wish to use it as a front end to batch process a
> > directoy of .html files. The script is to split an indidual html using ten
> > idendetical html strings as markers to split the file into ten individual
> > files separated by the use of the marker.
>
> It's similar to the script to merge eleven identical copies of the same
> mail into one :(
> THE MOUSE GOT OUt OF CONTROL LOL
> > a file name might be t-ddd.html after the script is done the nameswould be
> > t-ddd.1.html t-ddd.2.html .....t-ddd.10.html
>
> Provided the HTML files are smaller than 64K, you can split them with
> parse.
>
shoot 74k to 130k
> call open(in,'t-ddd.html','R')
> File = readch(in,65535)
> call close(in)
>
> parse var File File.1 marker File.2 marker File.3 marker...
> SARKIS HARD STUDYIG CODE BELOY THX NEIL

> do i=1 to 10
> call open(out,'t-ddd.'i'.html','W')
> call writech(out, File.i)
> call close(out)
> end
>
> Or something like that.
>
>
> Cheers
>
> Neil
> --
> Neil Bothwick - New Media Editor, Amiga Active Magazine
>
> If at first you don't succeed, skydiving is not for you.

ARexx mailing list - No flames, no overquoting, no crossposting.
Unsubscribe: Blank mail to mailto:arexx-unsubscribe@onelist.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/