Lj�s�lfr wrote:
I've been poking around the XPConnect stuff a bit because I want to open
a file to use as a data map in my application. Before I get to deep
into this, I would like to know if I'm wasting my time. I see losts of
tools for accessing specific kinds of data stores, but I haven't seen a
simple example of opening a text file and reading it. I really don't
care if I readln through the file, or chug the whole thing in at once.
The readln would be handy, but I can parse the data. I just need to be
able to get my hands on it. Is there a basic example of how to get a
file handle and read the contents?
What's the best API documentation for XPConnect?
TIA,
STH
Start here:
http://jslib.mozdev.org/libraries/io/file.js.html
If you want a reduce sample, take a look at this example in mozilla:
http://lxr.mozilla.org/seamonkey/source/editor/ui/composer/content/EditorCommandsDebug.js#288
Doug Turner
[EMAIL PROTECTED]