how to read/write data on Android?

mikedoub at gmail.com mikedoub at gmail.com
Sun Mar 18 22:54:26 EDT 2012


I am trying a binary file.  Is there any thing special about the type of the file?  I would not expect so. 

  -= Mike
 
Sent from my BlackBerry device on the Rogers Wireless Network

-----Original Message-----
From: "J. Landman Gay" <jacque at hyperactivesw.com>
Sender: use-livecode-bounces at lists.runrev.com
Date: Sun, 18 Mar 2012 21:49:22 
To: How to use LiveCode<use-livecode at lists.runrev.com>
Reply-To: How to use LiveCode <use-livecode at lists.runrev.com>
Subject: Re: how to read/write data on Android?

On 3/18/12 9:22 PM, Nicolas Cueto wrote:

>     put ("file:"&  specialFolderPath("engine")&  slash&
> "titleAndUniqueIDindex.txt") into tPath
>     answer "File in engine exists:"&&  there is a file tPath --
> confirms existence

I'm sorry, I told you wrong. I didn't mean to put you through that. 
There won't be a file named "file:data/etc". It should have been:

put specialFolderPath("engine") & slash & "titleAndUniqueIDindex.txt 
into tPath
answer "File in engine exists:" && there is a file tPath
if there is a file tPath then
   put url ("file:" & tPath into tData
end if

Does that work? If not, I'll try it tomorrow. I haven't actually tried 
including a text file with a build, but I've been including sounds using 
Copy Files and they're found okay with the above path. I also write text 
files to the documents folder and retrieve them with that path, and that 
works too.

Sorry again, you're probably pretty frustrated by now.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


More information about the use-livecode mailing list