Working with text - read text by lines from classpath
try (BufferedReader reader = new BufferedReader(new InputStreamReader(FileReader.class.getResourceAsStream("data.csv")))) {
new FileReader().readLines(reader);
} catch (IOException ioe) {
throw new IllegalStateException("Can not read file", ioe);
}