just for fun: pop quiz

Dave Cragg dave.cragg at lacscentre.co.uk
Sun Feb 3 06:27:25 EST 2013


I had a vague memory of this and checked in an old script and found the following:

read from file laFile[pUrl] for 4096
if the result <> empty and the result <> "eof" then
...


Dave

On 3 Feb 2013, at 00:36, Richard Gaskin <ambassador at fourthworld.com> wrote:

> Without looking in the Dictionary, what would you expect the value of tResult to be after successful execution of:
> 
> open file tValidFilePath for read
> read from file tValidFilePath until EOF
> put the result into tResult
> close file tValidFilePath
> 
> 
> --
> Richard Gaskin
> Fourth World
> LiveCode training and consulting: http://www.fourthworld.com
> Webzine for LiveCode developers: http://www.LiveCodeJournal.com
> Follow me on Twitter:  http://twitter.com/FourthWorldSys
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list