Below is my code to read and split the text file content.
try {
br = new BufferedReader(new FileReader(\"F:\\\\Test.txt\"));
final char[] cbuf
try (Scanner read = new Scanner(new File("/tmp/datafile.txt"));) {
read.useDelimiter("@");
while (read.hasNext()) {
String splitedPacket = read.next();
System.out.println(splitedPacket);
// Perform DB Operation
}
} catch (FileNotFoundException e) {
e.printStackTrace();
}