scusa ma se il file non esiste come puoi scrivere in append in append presuppone che sul file già ci sia qualcosa