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
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
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
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
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
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
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
>
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.