I tried print, println. Can't really figure it out. Any ideas?
package com.codegym.task.task13.task1318;
import java.io.*;
import java.util.Scanner;
/*
Reading a file
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader keyboardReader = new BufferedReader(new InputStreamReader(System.in));
String fileName = keyboardReader.readLine();
String filePath = "F:\\Documents\\" + fileName + ".txt";
InputStream inputStream = new FileInputStream(filePath);
BufferedReader br = new BufferedReader(new InputStreamReader(inputStream));
String fileLine;
while ((fileLine = br.readLine()) != null) {
System.out.print(fileLine);
}
keyboardReader.close();
inputStream.close();
br.close();
}
}