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
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to