Ho bisogno di legere un file txt abbastanza grande .
Ho trovato questo codice in rete
...
...
try {
Read_File RF = new Read_File("Percorso File");
long pos = 0;
int c;
byte buf[] = new byte[1];
String out="";
while ((c = RF.read(pos)) != -1) {
pos++;
buf[0] = (byte)c;
System.out.write(buf, 0, 1);
}
jLabel4.setText(out);
RF.close();
}
catch (IOException e) {
System.err.println(e);
}
...
...
praticamente vorrei aggiungere cio che stampa in uscita "System.out.write(buf, 0, 1)" alla variabile String out in modo da visualizzarla nella jLabel4

Come fare?