On 2017-04-26 08:35, Quentin Long via use-livecode wrote:
ask file "What do you want to read?"
put it into DisFile
read from file DisFile until EOF
put it into fld "This Field"

Why didn't I get an error message when I tried to read from a file
that hadn't been opened yet? Shouldn't LiveCode have gotten fussy
about that?

The read / write file commands both set 'the result' if there is an error with the operation requested - in this case it would be set to something like 'file not open'.

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

_______________________________________________
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