4.2 Program Sheet of Binary File Handling-1
4.2 Program Sheet of Binary File Handling-1
3. Write a function in python to read the objects of toys from binary file
“TOYS.DAT” and meant for children age range “5 to 8”.Record like :[code, toy
name , age].
4. Write a function in python to read the objects of worker from binary file
named “WORKER.DAT” and display those records of workers whose wage is
less than 300.Record like : [Wno , Wname , Wage].
5. Write a function in python to read the objects of VINTAGE from binary file
“VINTAGE.DAT” and display those vintage vehicles , which are priced between
200000 and 250000.Record like : [Vno, Vname ,price].
7. Write a function in python to read and display the details of all the users
whose status is ‘A’ (i.e. Active) from a binary file “USER.DAT”. Record like
[Vid , Vname , status].