Use correct fopen modes for read+update.