• 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
parsing a large text file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

parsing a large text file


  • Subject: parsing a large text file
  • From: email@hidden
  • Date: Thu, 6 Jul 2006 13:52:19 -0600

I need help parsing a large text file.
I need to examine the file one line at a time.
I make changes to it and then write it back out as a text file.

In the past I have put it all into one variable with:

set datafileref to (choose file with prompt "Choose the file:")
set file_data to (read datafileref as {text} using delimiter return)

But it doesn't work on a 32MB text file.

I can read the first line with:

set file_data to (read datafileref as {text} until return)

But how do I read the next line? ... and the next, etc., etc.?
--
DOS

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: parsing a large text file
      • From: Adam Bell <email@hidden>
    • Re: parsing a large text file
      • From: Gnarlodious <email@hidden>
    • Re: parsing a large text file
      • From: Peter Waibel <email@hidden>
  • Prev by Date: Re: folder resize & move
  • Next by Date: Re: Tiger sometimes fully expand a window: how do I resize it to be smaller ?
  • Previous by thread: Re: Folder actions
  • Next by thread: Re: parsing a large text file
  • Index(es):
    • Date
    • Thread