fopen -> open, fwrite -> write, fread -> read, dodanie flag