I put the test.txt file in the same directory as the main method. In the main method I write the following:
InputStream in = new BufferedInputStream(new FileInputStream("test.txt")); In response, I get:
java.io.FileNotFoundException: test.txt (Нет такого файла или каталога) The main class from which I run the application is in the directory src/decorator/inputStreamExample/ . test.txt there.
What am I doing wrong ?
Mainis part of the program. - Igor