[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [platform-core-dev] Eclipse File System
|
Hi,
I'd think that this is a question better posted at the
newsgroup. there
may be other users who are able to help you. As a
developer, I can
only say look at the code... EFS is being used in lots of
places.
In the simplest case, you can do something like
this:
IPath p = new Path("C:/tmp/testFolder");
IFileStore store =
EFS.getLocalFileSystem().getStore(p);
IProgressMonitor progress = new
NullProgressMonitor();
try {
store.mkdir(EFS.NONE, progress);
IFileStore child =
store.getChild("foo.txt");
OutputStream stream = child.openOutputStream(EFS.NONE,
progress);
Writer w = new
OutputStreamWriter(stream);
w.write("Hello, world\n");
w.close();
} catch(Exception e) {
e.printStackTrace();
}
See also
Cheers,
--
Martin Oberhuber, Senior Member of Technical
Staff, Wind River
Target Management Project
Lead, DSDP PMC Member
Hi all,
I am very new to EFS and I still cant get the idea
of how to use it. I would need some very sample example or tutorial to start
with. The available ones in the net (EclipseZone) aren' t that help for me. I
would really appreciate if somebody would help me with this.
Thanks for
your time and understanding!
--
ZineEllabidine
Eluharani