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, <[email protected]> <[email protected]> wrote:
> Following is my code snippets for files:
_______________________________________________
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