Re: File exists

2016-04-02 Thread JB
quot;this is a test.lcdoc") then > answer "A file was created!" > else > answer "The file was NOT created." > end if > else > answer "You can read from it now!" > end if > end

Re: File exists

2016-04-02 Thread RM
end if else answer "You can read from it now!" end if end mouseUp Please also note that Richmond's example is misleading. If you use 'read from file' without first using 'open file' then regardless of whether the file exists or not, 'it'

Re: File exists

2016-04-02 Thread Kay C Lan
n read from it now!" end if end mouseUp Please also note that Richmond's example is misleading. If you use 'read from file' without first using 'open file' then regardless of whether the file exists or not, 'it' will always be empty. ___

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
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 >> could check the creation date and if it was just >&

Re: File exists

2016-04-02 Thread RM
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 could check the creation date and if it was just cr

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

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

File exists

2016-04-02 Thread 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 could check the creation date and if it was just created then delete it but I was

Re: [BEGINER] How can I check the local machine to see if a file exists

2013-05-18 Thread Shawn Blc
t;http://someSubDomain.on-rev.com/test.txt";) > > > On Fri, May 17, 2013 at 11:12 PM, Roger Eller > wrote: > >> You need to know the path, but it's as easy as: >> >> if there is a file "c:/test.txt" then >>answer "file exists" >&g

Re: [BEGINER] How can I check the local machine to see if a file exists

2013-05-17 Thread Shawn Blc
ut it's as easy as: > > if there is a file "c:/test.txt" then >answer "file exists" > else >answer" file doesn't exist" > end if > > ~Roger > On May 17, 2013 11:54 PM, "Shawn Blc" wrote: > > > How can I chec

Re: [BEGINER] How can I check the local machine to see if a file exists

2013-05-17 Thread Roger Eller
You need to know the path, but it's as easy as: if there is a file "c:/test.txt" then answer "file exists" else answer" file doesn't exist" end if ~Roger On May 17, 2013 11:54 PM, "Shawn Blc" wrote: > How

[BEGINER] How can I check the local machine to see if a file exists

2013-05-17 Thread Shawn Blc
How can I check the local machine to see if a file exists? ___ 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

Re: Checking if file exists in a Windows system directory

2012-09-24 Thread Bob Sneidar
norm, but far be it from me to assume anything about your environment. Bob On Sep 24, 2012, at 2:47 PM, Magicgate Software - Skip Kimpel wrote: > Are there permission limitations to see if a file exists within a > Windows system directory (c:\windows\system32\myfile.dll)? > > For

Checking if file exists in a Windows system directory

2012-09-24 Thread Magicgate Software - Skip Kimpel
Are there permission limitations to see if a file exists within a Windows system directory (c:\windows\system32\myfile.dll)? For some reason I am not getting results returned and my code is being ignored. Thanks! ___ use-livecode mailing list use