I have this 2 lines in my code:
String csvPath = "D:\\myFolder";
Scanner scanner = new Scanner(ReadCSV.class.getResourceAsStream(csvPath + "\\myFile.csv"));
It gets me a null pointer error. I think it is because it is trying to find it under project path. How can I make this work without omitting the scanner? Is it possible to make it work wit getResourceAsStream() ?