[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Breaking up large text files
- Subject: Re: Breaking up large text files
- From: dalloff@freenet.columbus.oh.us (Dave Althoff)
- Date: 1996/04/03
- Newsgroups: comp.sys.apple2
- Organization: The Greater Columbus FreeNet
- References: <4jvceb$gma@vixen.cso.uiuc.edu>
Jonathan E. Isom (jisom@firefly.prairienet.org) wrote:
: Is there any programs that i could use to break up text files that even
: Appleworks GS can't read? I have a few and want to break them up into
: smaller ones.
: thanks
Hmmmmm...
Isn't there a technique where you can do a segmented load of a file from
BASIC.SYSTEM? I think if you know the file length, you can do something
like...
]BLOAD /BIGDISK/BIGFILE,A$2000,L$4000,TTXT
]CREATE /LITTLEDISK/LITTLEFILE.1,TTXT
]BSAVE /LITTLEDISK/LITTLEFILE.1,A$2000,L$4000,TTXT
]BLOAD /BIGDISK/BIGFILE,A$2000,L$4000,B$4001,TTXT
]CREATE /LITTLEDISK/LITTLEFILE.2,TTXT
]BSAVE /LITTLEDISK/LITTLEFILE.2,A$2000,L$4000,TTXT
Or something like that...I haven't tried it...I may have the wrong
parameter for the starting position in the big file (B$4001), or the wrong
syntax for the CREATE command. But I think that feature is built in to
ProDOS and BASIC.SYSTEM.
You need the file length (look at the end of the CATALOG listing) so that
you don't try to read beyond the end of the file with the last segment.
Not sure what happens if you try...I'm new to ProDOS.
--Dave Althoff, ][.
--
/-\ _ _ /| __*** Closed for the season ***
/XXX\ /X\ _/X/ | _ /XX\_ _ _ _____
/XXXXX\ /XXX\ <#&>/XX\_ /X\ /XXXXX\ /X\ /X\ /XXXXX
_/XXXXXXX\__/XXXXX\o==oXXXXX\_/XXX\_/XXXXXXX\__/XXX\_/XXX\_/\_/XXXXXX