[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Reading and Writing to/from external file

There are many ways to accomplish this, but perhaps you want to model your .xml file using EMF and generate an editor which your user can use to create an instance of that model, then save it as .xml / .xmi anywhere they choose (likely in their workspace) for reuse/reload later.

http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.emf.doc/tutorials/clibmod/clibmod.html

Dan Xu wrote:
Hi,
I was wondering if anyone knew of a tutorial or could explain here how to read and write to a .txt or .xml file using eclipse. Basically, I am allowing the user to make a tree, and I would like for him to be able to save and reload it later. How do I read/write, and what do I use to specify location for save/load? I am used to command prompt world so this is a bit new for me.


Thanks!


-- Nick Boldt :: Release Engineer, IBM Toronto Lab Eclipse Modeling :: http://www.eclipse.org/modeling http://wiki.eclipse.org/index.php/User:Nickb