I have a text file in the following format:
Details.txt
The file is a .txt file. I want to read course title from this file and print corresponding textbook
you can use FileUtils.readFileToString(new File(""C:/details.txt");
Now you can extract the required data based on your wish