Re: Any way to get "file pointer"?
Re: Any way to get "file pointer"?
- Subject: Re: Any way to get "file pointer"?
- From: Steve Mills <email@hidden>
- Date: Fri, 01 Jun 2018 11:54:34 -0500
> On Jun 1, 2018, at 10:52, Gil Dawson <email@hidden> wrote:
>
> Is there a way to get the current value of the "file pointer" value of an
> open file?
>
> I be reading a text file "before delimiters" without closing and reopening,
> so each read gets a new line from the file.
>
> Then comes a time, I'd like to know the byte number in the file for the next
> read; i.e., of the first character which the next read will bring.
Since you already have a file reference, just call “get eof fr” where fr is
your variable for the file reference. It returns the length of the file.
Steve via iPad
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden