Hi Graham,
> On 5 Mar 2018, at 10:56 pm, Graham Samuel via use-livecode > <use-livecode@lists.runrev.com> wrote: > > As in some of my previous mails, I’m talking about having to retrieve a tiny > text file from a server (and later put a modified version of it back, but > let’s get one problem solved at a time) The whole thing is just a few lines > of code: > > constant myFileOnTheServer = "www.myserver.comm/mytextfile.txt” > > put “http://“ & myFileOnTheServer into t1 > > get URL t1 > > if the result is empty then > > do stuff with ‘it’, where the text file is placed > > … I would recommend using: put URL t1 into tData The contents of ‘it’ can be changed by other commands, so if you are having issues in a more complex app, maybe something else is overwriting that value? Cheers, Charles _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode