Corso di Raku / Oggetti, input/output ed eccezioni / Input e output / Lavorare con i file / Aggiungere a un file
Quiz — spurt e
slurp
Cosa stampa il programma seguente?
spurt 'f.txt', "A\n";
spurt 'f.txt', "B\n";
print slurp 'f.txt';| 0 | A |
| 1 | B |
| 0 | A e B su due righe |
| 0 | niente |