add openfile and closefile in fonction ppm_write and ppm_read and remove from main