RE: write fails

2005-08-25 Thread Lynch, Jonathan
: How to use Revolution Subject: RE: write fails >Thanks Ken! > >So, you could say: > >Put tMyText after URL(tFileURL) > >But, would this be just as good as opening a file for append, then >adding information to that file? > >Basically, does the open/append/add method loa

Re: write fails

2005-08-25 Thread Jeanne A. E. DeVoto
At 1:18 PM -0500 8/25/2005, Ken Ray wrote: apparently the engine doesn't require there to be a space after keywords where there is something to evaluate that follows. [...] repeat while(x+1) < 10 put word(x+1) of "This is a test" Although this is consistent, it still *looks* wrong to me.

Re: write fails

2005-08-25 Thread Ken Ray
On 8/25/05 11:55 AM, "Jeanne A. E. DeVoto" <[EMAIL PROTECTED]> wrote: > At 11:22 AM -0500 8/25/2005, Ken Ray wrote: >> Yes, you can, but remember that URL is both a keyword and a function, and >> although it can work without parentheses for some file operations (like >> "into"), it doesn't work wh

RE: write fails

2005-08-25 Thread Robert Brenstein
Thanks Ken! So, you could say: Put tMyText after URL(tFileURL) But, would this be just as good as opening a file for append, then adding information to that file? Basically, does the open/append/add method load the entire file into memory, then add the text, then write the new text back to dis

Re: write fails

2005-08-25 Thread Jon
Excellent approach, Eric! Eric Chatonet wrote: Hi Jon, I'm used to another method which works well for me: put "C:/RHOADS/EEOL2/Logs/log.txt" into tLogFilePath put the date & " " & the long time & " " & m into tData - put url("file:" & tLogFilePath) into tLog if tLog = empty then put t

Re: write fails

2005-08-25 Thread Jeanne A. E. DeVoto
At 11:22 AM -0500 8/25/2005, Ken Ray wrote: Yes, you can, but remember that URL is both a keyword and a function, and although it can work without parentheses for some file operations (like "into"), it doesn't work when using "after" or "before" without using parentheses, and can be touchy at oth

RE: write fails

2005-08-25 Thread Lynch, Jonathan
disk? Does the put after URL method do that? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ken Ray Sent: Thursday, August 25, 2005 12:22 PM To: Use Revolution List Subject: Re: write fails On 8/25/05 8:41 AM, "Lynch, Jonathan" <[EMAIL PROT

Re: write fails

2005-08-25 Thread Ken Ray
On 8/25/05 8:41 AM, "Lynch, Jonathan" <[EMAIL PROTECTED]> wrote: > That makes sense. > > I have not tried it, but can one do the same thing by saying?: > > Put tNewText after URL tFileURL Yes, you can, but remember that URL is both a keyword and a function, and although it can work without pare

RE: write fails

2005-08-25 Thread Lynch, Jonathan
: RE: write fails Jon i use open file x for append... For log files, it is crucial not to erase the logs... And while the |put data into url thisurl" is great, and easy but i wouldn't consider it as a good practice if the file is over a certain size... but of course, depe

RE: write fails

2005-08-25 Thread xbury . cs
- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Pat > Trendler > Sent: Thursday, August 25, 2005 9:29 AM > To: How to use Revolution > Subject: Re: write fails > > Jon, > > I think you need to "open file" before writing to it, or, alt

RE: write fails

2005-08-25 Thread Lynch, Jonathan
rs to its own format, then put "binfile:" in front of the file path rather than "file:" -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pat Trendler Sent: Thursday, August 25, 2005 9:29 AM To: How to use Revolution Subject: Re: write fai

Re: write fails

2005-08-25 Thread Pat Trendler
Jon, I think you need to "open file" before writing to it, or, alternatively use the "put URL" See the docs for detail. Pat [EMAIL PROTECTED] - Original Message - From: "Jon" <[EMAIL PROTECTED]> To: "Revolution List" Sent: Thursday,

Re: write fails

2005-08-25 Thread xbury . cs
Jon you need to open the file first... see Open file... Write file... and close file... Each has it's options too... cheers -=- Xavier [EMAIL PROTECTED] wrote on 25/08/2005 15:09:21: > I'm trying to log activity to a file with what I thought was a si

Re: write fails

2005-08-25 Thread Eric Chatonet
Hi Jon, I'm used to another method which works well for me: put "C:/RHOADS/EEOL2/Logs/log.txt" into tLogFilePath put the date & " " & the long time & " " & m into tData - put url("file:" & tLogFilePath) into tLog if tLog = empty then put tData into url("file:" & tLogFilePath) else put tLog

write fails

2005-08-25 Thread Jon
I'm trying to log activity to a file with what I thought was a simple approach: put the date & " " & the long time & " " & m & Return into s write s to file "C:/RHOADS/EEOL2/Logs/log.txt" at end The file is not created automatically; after creating the file manually, the file remains empty; t