Revlet save a txt file

Howard Bornstein howard.bornstein at gmail.com
Tue Jul 28 13:20:28 EDT 2009


On Sun, Jul 26, 2009 at 12:51 PM, Richard Gaskin <ambassador at fourthworld.com
> wrote:

> Yves COPPE wrote:
>
>  1) how can I save the txt file on my personal web site  (it is not a
>>  rev-server)
>>
>
> Two ways to send data to a server are FTP and POST via HTTP.  From anything
> running on a public client FTP would expose your password unnecessarily, so
> using POST to send the data to a CGI would probably be the better option.


I have been wondering about this also and am confused as to why the standard
read and write file commands would not work. The revlet is sitting in a
directory on a server, just like a stack sits in a directory on your local
hard disk. You want to read or write a file in a directory relative to the
stack or revlet. So why wouldn't

 open file fpath for write -- where fpath is the directory your revlet is
in, for example
 write fld "data" to file fpath
 close file fpath

work on the server just like it works on your local hard drive, especially
if the plugin is supposed to support virtually all of Rev's commands?

-- 
Regards,

Howard Bornstein
-----------------------
www.designeq.com



More information about the use-livecode mailing list