I keep things simple by using these two routines that might work for you: on writefile fileTowrite,dataTowrite set the defaultFolder to specialFolderPath("Documents") put dataTowrite into URL (("file:"&fileTowrite&".txt")) end writefile
function readFromFile whatFile set the defaultFolder to specialFolderPath("Documents") return URL (("file:"&whatFile&".txt")) end readFromFile Gerry On 25/07/2011, at 12:35 PM, <gwendalw...@cox.net> <gwendalw...@cox.net> wrote: > Following is my code snippets for files: _______________________________________________ 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