Created
March 18, 2016 08:33
-
-
Save KomanRudden/6c6e0576bdcb6bbd626c to your computer and use it in GitHub Desktop.
Read file from resources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ClassLoader classLoader = getClass().getClassLoader(); | |
File file = new File(classLoader.getResource("theFile.xml").getFile()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment