Extracting/Reading the CSV file and TXT file and Writing the data into CSV file
Exacting the CSV file. String exactedFile = "D:\\Temp\\test.csv"; CSVReader csvReader = new CSVReader(new FileReader( exactedFile )); // Reading the CSV file . String[] row = null; while((row = csvReader.readNext()) != null) { // Reading the individual line row[0] // printing the first cell. row[1] // printing the second cell. } We need to add opencsv-1.7.jar in the class path. import au.com.bytecode.opencsv.CSVReader; Reading the TXT file. final String file1 = "D:\\Temp\\creds.txt"; BufferedReader br = null; String sCurre...