Read for 1000 until nearest space?
Read for 1000 until nearest space?
- Subject: Read for 1000 until nearest space?
- From: Joe <email@hidden>
- Date: Mon, 13 Oct 2008 19:59:52 -0700
The read command can step through a larger text file piece by piece,
say i000 bytes at a time.
--for example
set fr to open for access file "S:Users:j:Desktop:aaa.txt"
try
repeat
set x to read fr for 1000
display dialog x
end repeat
end try
close access fr
Is there any way to get it to break at the space character nearest to
1000 bytes rather than the middle of a word?
Thanks
Joe
_______________________________________________
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