There is noting wrong in my program. I am able to display the contents of file path I am passing. But 2nd step is failing and I am getting recommendation from mentor as "Too many lines". Can any one clarify exactly what he wants to say ? I am only displaying 3 lines(3 letters in 3 lines)
package com.codegym.task.task13.task1318;
import java.io.*;
/*
Reading a file
*/
public class Solution {
public static void main(String[] args) throws IOException {
// write your code here
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
String filePath = bufferedReader.readLine();
InputStream inputStream = new FileInputStream(filePath);
while (inputStream.available() > 0) {
int inStt = inputStream.read();
System.out.println((char) inStt);
}
bufferedReader.close();
inputStream.close();
}
}