Livecode Server and Repeat Scripts on Server

Jim Lambert jiml at netrin.com
Fri Aug 1 12:51:20 EDT 2014


John,

> put url("file:users.txt") into tUserFile


Since you have read the entire file into memory you might also try filter
	filter tUserFile with “tUsername,*”
if it’s empty then the name is unique.

You may be able to speed up subsequent searches by sorting the contents of the file before writing it back to disk, which will put it in alphabetical order by username, since that is the first word of each line.
Then subsequently you can use offset or lineoffset to quickly discard all the lines up to the letter of the alphabet that begins the tUsername.

Another possibility 'read from file’ until (CR & “tUsername,”)

Jim Lambert



More information about the use-livecode mailing list