Re: File exists

2016-04-02 Thread JB
Thanks for the code and info, Kay. JB > On Apr 2, 2016, at 10:53 AM, Kay C Lan wrote: > > On Sat, Apr 2, 2016 at 4:48 PM, JB wrote: >> If I open a file for read or write and the file does >> not exist it will be created. > > Just to clarify, that statement is incorrect. > > If you open a f

Re: File exists

2016-04-02 Thread RM
On 2.04.2016 20:53, Kay C Lan wrote: On Sat, Apr 2, 2016 at 4:48 PM, JB wrote: If I open a file for read or write and the file does not exist it will be created. Just to clarify, that statement is incorrect. If you open a file for 'write' and the file does not exist, it will be created. if

Re: File exists

2016-04-02 Thread Kay C Lan
On Sat, Apr 2, 2016 at 4:48 PM, JB wrote: > If I open a file for read or write and the file does > not exist it will be created. Just to clarify, that statement is incorrect. If you open a file for 'write' and the file does not exist, it will be created. if you open a file for 'read' and the fi

Re: File exists

2016-04-02 Thread JB
Thank you, Richmond! Your help is always appreciated. JB > On Apr 2, 2016, at 2:03 AM, RM wrote: > > Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: File exists

2016-04-02 Thread JB
I LIKE THAT! thank you very much. JB > On Apr 2, 2016, at 2:00 AM, Thierry Douez wrote: > > Hi, > > there is a file ".." > > HTH, > > Thierry > > > 2016-04-02 10:48 GMT+02:00 JB : > >> If I open a file for read or write and the file does >> not exist it will be created. Is there a way

Re: File exists

2016-04-02 Thread RM
Naively I tried this in a button: on mouseUp if exists(file "HereWeGo.txt") then open file "HereWeGo.txt" for write else put "no such file" end if end mouseUp AND the thing didn't work because 'exists' only works for objects within Livecode. BUT this seems a reasonable

Re: File exists

2016-04-02 Thread Thierry Douez
Hi, there is a file ".." HTH, Thierry 2016-04-02 10:48 GMT+02:00 JB : > If I open a file for read or write and the file does > not exist it will be created. Is there a way to see > if the file exists before opening it? I do not want > a file to be created if it does not exist. I guess I >

Re: File exists

2016-04-02 Thread -=>JB<=-
Files will do it; I forget so easily. JB > On Apr 2, 2016, at 1:48 AM, JB wrote: > > If I open a file for read or write and the file does > not exist it will be created. Is there a way to see > if the file exists before opening it? I do not want > a file to be created if it does not exist.