write fails

Lynch, Jonathan bnz2 at cdc.gov
Thu Aug 25 15:08:50 EDT 2005


Thanks,

That makes sense, if appending is just adding on to the end of the file
on the disk, and not bothering to load the file up into memory.

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Robert
Brenstein
Sent: Thursday, August 25, 2005 1:03 PM
To: 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 load the entire file into
>memory, then add the text, then write the new text back to disk? Does
>the put after URL method do that?

I haven't done any testing with newer versions of Rev but I 
investigated this a couple years ago when adding a logging function 
to my web cgi. Using the open for append/write/close was determined 
to be somewhat more efficient than the url method (and confirmed by 
Scott Raney at that time).

Robert
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list