Содержимое не отображается в выходном файле в папке ресурсов затмения - PullRequest
0 голосов
/ 19 марта 2020

Я использовал приведенный ниже код для записи вывода в файл

URL res = getClass().getClassLoader().getResource("resources/output.txt");
                    File file = Paths.get(res.toURI()).toFile();
                    System.out.println(file);
                    PrintWriter  writer = new PrintWriter (file);
                    writer.write(fileContent);
                    writer.close();

I am able to see the output in the windows file system(C:\dsassignment\ShortestPath\bin\resources\output.txt) but eclipse is not showing the output file content

Любая помощь будет заметна

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...