Loading a text file resource from classpath in Java
Copy this code and paste it in your HTML
final URL resource
= this.
getClass().
getClassLoader().
getResource(path
); List
<String
> lines
=IOUtils.
readLines((InputStream) resource.
getContent());
Report this snippet
Comments
Subscribe to comments