Entering data in file using file handling in C [Program]