For record update, open file in binary mode