SyntaxFix
Write A Post
Hire A Developer
Questions
I know this is late, but this is how I normally do it,
ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); InputStream stream = classLoader.getResourceAsStream("../test/foo.txt");