Parsing text Java from PDF [duplicate] Parsing text Java from PDF [duplicate] sqlite sqlite

Parsing text Java from PDF [duplicate]


This could be a good example for you to start learning more about Java IO and String parsing. Google is your friend.

//uri where your file is String fileName = "c://lines.txt";// read the file into a buffered readertry (BufferedReader br = new BufferedReader(new FileReader(fileName))) {    String line;    while ((line = br.readLine()) != null) { //iterate on each line of the file        System.out.println(line); // print it if you want         String[] split=line.split(" "); // split your line into array of strings, each one is a separate word that has no spaces in it.        //add any checks or extra processes here     }} catch (IOException e) {    e.printStackTrace();}