aspose file tools
The moose likes Beginning Java and the fly likes Storing bits and pieces of a text file using buffered reader Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Storing bits and pieces of a text file using buffered reader" Watch "Storing bits and pieces of a text file using buffered reader" New topic
Author

Storing bits and pieces of a text file using buffered reader

leila la
Greenhorn

Joined: Apr 26, 2012
Posts: 19
suppose i have a text file with several lines
3/3/3, 3,3,3
4/4/4,2,4,5
etc... how do i store the part with the 3/3/3 in a seperate array and the remaining numbers in different arrrays Like how can i take each part of the text and store it in diferent arrays. I know i can use the split statement but then what? plzz help
thanks in advance
Swastik Dey
Ranch Hand

Joined: Jan 08, 2009
Posts: 1196

You probably need to split statements here. Assuming that a variable called line contains the value.


Swastik
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4167
    
    3

leila la wrote:plzz help

Please UseRealWords <-- link


luck, db
There are no new questions, but there may be new answers.
leila la
Greenhorn

Joined: Apr 26, 2012
Posts: 19
Ok Darry Burke, so sorry about that!

Thanks Swastik Dey, but what do you mean that the variable called line contains the value. What sort of value are you referring to here?
Thank you for replying!
leila la
Greenhorn

Joined: Apr 26, 2012
Posts: 19

I found this code and was hoping someone could explain what was going on, it could help me.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32708
    
    4
Have you looked at this method?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Storing bits and pieces of a text file using buffered reader
 
Similar Threads
Threads
Writing a dictionary application
Reading from a text file
How to read file line by line and word by word?
String Encryption