the error is program displays too many errors...
package com.codegym.task.task13.task1318;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.io.FileInputStream;
/*
Reading a file
*/
public class Solution {
public static void main(String[] args) {
// write your code here
try{
BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
String filename=reader.readLine();
FileInputStream fname=new FileInputStream(filename);
while(fname.available()>0)
{
int data=fname.read();
System.out.println((char)data);
}
reader.close();
fname.close();
}catch(Exception e){
}
}
}