Hi friends,
I have written a program using
thread and I/O operations which should read all the text files from a folder and should retrieve the values(Files contains organized records) and insert into the database table.When the data of a file is read and inserted to the database,the file should be deleted from that folder,if any exception occurs,the file should be moved to a folder called "Error".In my program all the things are going fine,but after reading the file and inserting,the file is not getting deleted,and also the error file is not moved to the error folder...Can anyone please help me out with a solution as quick as possible...Below is my code,,,
package com.thread.fileprocessingwithdatabase.exam;
[Edit - added code tags - see UseCodeTags for details]