open file & read from file vs get URL

Doug Lerner doug at webcrossing.com
Mon Feb 16 08:42:38 EST 2004


I see. That is helpful. Thanks.

doug

On 2/16/04 10:17 PM, "Bj^rnke von Gierke" <bvg at mac.com> wrote:

> URL is simpler to use, as you don't need to care about mode or closing
> the file again. This it is far simpler and more comfortable to use.
> Examples:
> put "another line" & return before URL "file:file/path/here/file.txt"
> put empty into URL "file:textfile.txt"
> get word 1 of line 2 of URL "file:source.txt"
> 
> The read-, open- and write-file commands don't put the whole file into
> memory, so if your file's are huge, then that is an advantage (In so
> far as I reckon that is the only advantage of these over URL)
> 
> On Montag, Feb 16, 2004, at 10:18 Europe/Zurich, Doug Lerner wrote:
> 
>> I have been using open file and read from file. The docs, however,
>> note:
>> 
>> "As an alternative to the open file, read from file, and write to file
>> commands, you can also use the URL keyword with get, put, and other
>> commands
>> to access the contents of a file."
>> 
>> Is there an advantage to one method over the other?
>> 
>> doug
>> 
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list