Return to Snippet

Revision: 10828
at January 15, 2009 09:31 by narkisr


Initial Code
final URL resource = this.getClass().getClassLoader().getResource(path);
List<String> lines=IOUtils.readLines((InputStream) resource.getContent());

Initial URL

                                

Initial Description

                                

Initial Title
Loading a text file resource from classpath in Java

Initial Tags
file, java

Initial Language
Java