Mi stampa solo carattere '?' come mai?nel file.txt che gli passo c'è dentro una frase
public String Scova(long pos,int lunghezza,String appo) throws IOException
{
String s="";
char so;
File f = new File(appo);
RandomAccessFile raf = new RandomAccessFile(f, "rw");
// Read a character
raf.seek(pos);
for(int i=1;i<lunghezza;i++)
{
so=raf.readChar();
System.out.println(so);
}
raf.close();
// Seek to end of file
//raf.seek(pos);
return s;
}