Condition "program have to show the content of the file" is not accepted. But it does show the content of the file...
I also couldn't find any solution to this.
Please help.
package pl.codegym.task.task13.task1318;
import java.io.*;
import java.util.Scanner;
/*
Wczytywanie pliku
*/
public class Solution {
public static void main(String[] args) throws IOException {
InputStream inputStream = null;
BufferedInputStream buffer = null;
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String link = reader.readLine();
inputStream = new FileInputStream(link);
buffer = new BufferedInputStream(inputStream);
while (buffer.available() > 0){
char znak = (char) buffer.read();
System.out.print(znak);
}
inputStream.close();
buffer.close();
reader.close();
}
}