Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void getFileWithUtil(String fileName) {
- ClassLoader classLoader = getClass().getClassLoader();
- try (BufferedReader br = IOUtils.buffer(new InputStreamReader(new FileInputStream("/answer.txt")))) {
- this.fileContent = br.readLine();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
Add Comment
Please, Sign In to add comment