[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: output redirection



David Empson <dempson@actrix.gen.nz> wrote:
> William Katz <druid@dorsai.org> wrote:
>
>> I ran your program, and even ran it with lines 70 and 80 swapped, but it
>> only captures the first filename from a directory, to the
>> "catalog.txt" file, and stops right there.
>
> It turns out that I hit a feature which I didn't know before.  Issuing a
> ProDOS READ command on an open directory appears to reset the current
> position back to the blank line prior to the first file.  (The behaviour
> might be more complicated than this, e.g. it might reset back to the
> first file entry in the current block of the directory.)  The blank line
> confused the program into thinking it had reached the end of the
> directory.

Thanks for the updated program!!  It works great.  I haven't tested it
with the maximum number of files either, but I'm sure it will work for 250
files as well.

-- 
William D. Katz "a good skier"

Internet: druid@dorsai.org
Internet: wkatz@nyx.net