From: | Neil Bothwick |
Date: | 26 Apr 2001 at 23:46:56 |
Subject: | Re: splitting a html file |
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 :(
> 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.
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...
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
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/