I need to write "indice_corrente.txt" file. The structure is:
Home
  src
    Grafica
       FinestraPrincipale.java
       indice_corrente.txt
I need to write hello in "indice_corrente.txt" so I use this code to get Resources:
    String path=this.getClass().getResource("/Grafica/indice_corrente.txt").getPath();
PrintWriter pw=new PrintWriter(path);
But the string path is null because the getResource is null. Anyone can help me to resolve this?
