wood burning stoves 2.0*
The moose likes I/O and Streams and the fly likes calling method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "calling method" Watch "calling method" New topic
Author

calling method

Roberto Favaro
Greenhorn

Joined: Mar 23, 2004
Posts: 24
Hi all. Im reading a file with a button on my application using a fileChooser. I need to use this file to parse the info stored inside. can anyone tell me how to use the file selected to call the method.Im having a problem with the type File and the type String. I need the type String but I have the type File.
Heres a snippet of code:
Roberto Favaro
Greenhorn

Joined: Mar 23, 2004
Posts: 24
Sorry, thats not very clear. I wish to use the file selected by the filechooser in the method parseFile???
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Um, I think you're just looking for


"I'm not back." - Bill Harding, Twister
Roberto Favaro
Greenhorn

Joined: Mar 23, 2004
Posts: 24
Thanks....
I changed the code to look as follows and it worked
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling method