Guest User

Untitled

a guest
Dec 4th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. // write file
  2. void getFileWithUtil() {
  3. ClassLoader classLoader = getClass().getClassLoader();
  4. try {
  5. this.fileContent = IOUtils.toString(classLoader.getResourceAsStream("/answer.txt"));
  6. } catch (IOException e) {
  7. e.printStackTrace();
  8. }
  9. }
Add Comment
Please, Sign In to add comment