An anomaly in the "read from file" command?
Mark Waddingham
mark at livecode.com
Wed Apr 26 02:38:21 EDT 2017
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 ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps
More information about the use-livecode
mailing list