http://programmazione.html.it/guide/...unzione-fopen/
qui c'č tutto