50 29-09-2020 11:49:54 55 29-09-2020 12:54:41 60 29-09-2020 13:08:16 58 29-09-2020 14:08:21 ... 60 30-09-2020 11:29:34 56 30-09-2020 12:34:21 60.3 30-09-2020 13:48:36 58.1 30-09-2020 14:18:11
public class ReadFiles { public static void main(String[] args) { try { File readFile = new File("price.txt"); Scanner fileReader = new Scanner(readFile); while (fileReader.hasNextLine()) { String fileContent = fileReader.nextLine(); System.out.println(fileContent); } fileReader.close(); } catch (FileNotFoundException e) { System.out.println("file was not found"); e.printStackTrace(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)