fopen read and write mode