ultimo tentativo poi mi arrendo

quando chiami la funzione per ricevere i i dati ti dovrebbe sollevare una IOException() o affini