wood burning stoves 2.0*
The moose likes I/O and Streams and the fly likes Reading file in and sperating it out :URGENT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Reading file in and sperating it out :URGENT" Watch "Reading file in and sperating it out :URGENT" New topic
Author

Reading file in and sperating it out :URGENT

Roberto Favaro
Greenhorn

Joined: Mar 23, 2004
Posts: 24
Hey all,
Im really stuck.Im trying to select a file and read its data.I want to seperate this data out so I can assign it to variables. I dont know if i need input streams???.Could someone please help me......

example of data to be read from file
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Set this aside for a minute and put together the smallest program you can that shows where you are stuck. I pulled these lines from different places in your code:

If you put that in the main() of a tiny new class, does it work? Does that answer the question about needing streams? What do you want to do to each line next?


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8964
    
    9

Have you taken a look at our FAQ, How To Ask Questions On JavaRanch? It has sections like Ease Up and Isolate The Problem that will help us help you.


[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading file in and sperating it out :URGENT