read data from a file in java

后端 未结 5 1141
被撕碎了的回忆
被撕碎了的回忆 2021-01-17 04:32

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

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-17 05:26

    you can use FileUtils.readFileToString(new File(""C:/details.txt");

    Now you can extract the required data based on your wish

提交回复
热议问题