Gregory Lypny wrote:
Is it okay to append data to a file on a remote Mac usingput return & theLineOfData after URL ("ftp://" & pathToTheFile) where, theLineOfData is a single line of data? I figure that's safer than downloading all of the data from the URL into a variable, appending the new data, and then uploading the whole thing.
I think what'll happen there is that the url expression will be evaluated first, and you'll wind up with the local variable "it" appended and the item on the server untouched.
The most efficient way to do this would be to have a CGI receive the data and append it to the file, easily sendable with POST.
Using FTP, I believe the only solution would be to download the file, append it, and re-upload it. There may be other options in the FTP spec, though, but still I'd consider using the CGI solution first as it would be simple and fast.
-- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
