How to read data from file .txt using java bean.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Hans_Kumala
Posted On:   Friday, August 3, 2007 08:49 AM

How to read data from file .txt using java bean?
But read data line by line form file .txt .
After that import data to database.

Re: How to read data from file .txt using java bean.

Posted By:   Robert_Lybarger  
Posted On:   Friday, August 3, 2007 07:43 PM

Honestly now...

try {
BufferedReader reader =
new BufferedReader(new FileReader(someFileObj));
String line = null;
while ((line = reader.readLine())!=null) {
// do something with 'line'
}
}
catch (IOException e) {
// do something here
}
About | Sitemap | Contact