è un errore scrivere as #filenum invece che as filenum?