Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // write file
- void getFileWithUtil() {
- ClassLoader classLoader = getClass().getClassLoader();
- try {
- this.fileContent = IOUtils.toString(classLoader.getResourceAsStream("/answer.txt"));
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
Add Comment
Please, Sign In to add comment