Binary Test Question
Binary Test Question
Q8. A binary file “salary.DAT” has structure [employee id, employee name,
salary]. Write a function countrec() in Python that would read contents of
the file “salary.DAT” and display the details of those employee whose salary
is above 20000.