[Project_owners] Persisting some data

Christopher Ottley xknight at users.sourceforge.net
Wed Mar 9 00:05:45 EST 2005


Bradley Rintoul wrote:

> I would like to persist a simple array of strings to use between 
> invocations of the browser.  I would like to save this information 
> locally - is RDF my only option?

No. Have a look at the components    @mozilla.org/file/local;1    
@mozilla.org/network/file-output-stream;1    
@mozilla.org/network/file-input-stream;1    and 
@mozilla.org/scriptableinputstream;1

These will let you read and write any data you want to a local file. 
Once you know where you want to store it and how to parse the stored 
file, you should have your alternative.

Regards,
Christopher.


More information about the Project_owners mailing list