Class-12: Computer Science With Python | Working With Binary Files | Searching Record in Binary File
A Binary file, CINEMA.DAT has the following structure:
[Mno,Mname, Mtype]
Where Mno – Movie Number
Mname – Movie Name
Mtype is Movie Type
Write a user defined function, findType(mtype), that accepts mtype as parameter and displays all the records from the binary file CINEMA.DAT, that have the value of Movie Type as mtype.