Re: Read file bug?
Re: Read file bug?
- Subject: Re: Read file bug?
- From: Timothy Bates <email@hidden>
- Date: Mon, 21 Apr 2003 22:17:18 +1000
>
> If I open a file and read until the end of a line, I expect to eventually
>
> error as we hit the eof.
>
But not if you *never find* an end of line! You were trying to read
>
a file delimited with carriage returns and not line feeds, so the
>
script was reading until doomsday on the first iteration.
It is finding line endings (and they are line feeds) just fine. The bug is
that is keeps returning the last line over and over and over until
cancelled, rather than reporting the EOF. Turns out that read file has a
problem with unix line endings in some files, one of which I had created.
Cheers,
tim
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.