Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JTree and text file

Status
Not open for further replies.

welshspoon

Technical User
Dec 14, 2002
34
GB
hiya!

I was wondering whether it was possible to create a tree based around the information held in a text file? For example, if the file was called numbers, then there would be a node(folder) with this name following sub-nodes of the values held in the file.

Thanks in advance
 
yes
but it is good for you to store data in xml instead of text.
Because xml structure can represent tree, so it is best habit to store data in xml for represent them in a tree.

you may need java xml parsing technique to read data from xml.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top