Skip to main content

[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
http://help.eclipse.org/ganymede/topic/org.eclipse.platform.doc.isv/guide/resAdv_efs_api.htm
 
Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
 
 


From: platform-core-dev-bounces@xxxxxxxxxxx [mailto:platform-core-dev-bounces@xxxxxxxxxxx] On Behalf Of eluharani zineellabidine
Sent: Wednesday, November 12, 2008 2:49 PM
To: platform-core-dev@xxxxxxxxxxx
Subject: [platform-core-dev] Eclipse File System

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

Back to the top