How to read from text file and insert into database using java
Please somebody help me, i am newbie in Java. i have questions about java programing, how to read from text file and insert into database.
I have text file let's say like
I wanna be able to read the text file and skip the header and footer, String A means i have to insert the data and String U means i have to update the previous record in database. And i have to parse every string after string A or U. There are 6 strings after A or U. so i want to put into 6 fields in database.
Please somebody help me. Can we do those things in Java?