• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Reading a file as it fills up by another program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reading a file as it fills up by another program


  • Subject: Reading a file as it fills up by another program
  • From: email@hidden
  • Date: Sun, 7 Dec 2003 00:07:13 +0100

I want to read a file, record by record, as the file is being filled up by another process. The writing process is a "regular" unix process.

After an 'open for access', EOF will retain its value of 0 until the file is closed, so it won't read the file as it fills up. If I would repeatedly close the file to reopen it, it would "forget" the position of the last record. Besides, I would prefer not to have 'delay 1' in some read loop, since 1 second is too much (and I don't want to restrict everything to Panther which can do shorter delays).

Enter solution here: ...........


--heb
_______________________________________________
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.

References: 
 >Reading resource forks (From: Graff <email@hidden>)
 >Re: Reading resource forks (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: How to rename a file?
  • Next by Date: Bring FileMaker window to front
  • Previous by thread: Re: Reading resource forks
  • Next by thread: RE: Reading resource forks
  • Index(es):
    • Date
    • Thread