Neanche questo funziona:
codice:
ServletContext context = getServletContext();
String fullPath = context.getRealPath("/WEB-INF/users.txt");
System.out.println(fullPath);
FromTxtToMatrix rf = new FromTxtToMatrix();
rf.LeggiFile(fullPath);
perché ottengo questo:
codice:
D:\...\WEB-INF\users.txt
java.lang.NullPointerException