Cambios a openFIle y writeFile