Write a program to updating random access file