|
-
want to read a nested ArrayList from a text file.
Hi,
I have a nested java ArrayList in a text file. I need to read that ArrayList in a Java program, and work with it. The problem is, whenever I am reading the file, I could only read the ArrayList as a String. Can anyone please help me to read the List in the file, as the same list in the java program?
Actually, I have created a java Arraylist in another program, and have copied the arraylist to a text file. The Arraylist is nested: (e.g. [a, b, [c, [d, e]]] ) Now, I need to read that ArrayList from the text in a java program and work with it. The problem I am facing is, I can read the ArrayList only as a string from the file. I am using :
" FileReader fr = new FileReader ("javaList.txt");
BufferedReader br = new BufferedReader (fr);"
Now, converting that string to a similar nested Arraylist is proving to be difficult for me. I don't know how to do it.
Thanks a lot!
Similar Threads
-
By sarasahg in forum Java
Replies: 1
Last Post: 12-13-2005, 03:36 AM
-
By crazyguitarchik in forum Java
Replies: 1
Last Post: 11-30-2005, 08:12 PM
-
By Ted Young in forum VB Classic
Replies: 1
Last Post: 08-21-2000, 09:47 PM
-
By Gabriele in forum Java
Replies: 1
Last Post: 05-03-2000, 03:38 AM
-
By deborah in forum authorevents.kurata
Replies: 0
Last Post: 04-17-2000, 01:33 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks