Computer Science, asked by ashreya1906, 1 month ago

Create a binary file 'emp.dat' which has a structure (empid,empname, salary). Write functions that would write and read contents of the file and display the details of those employees whose salary is greater than 50000.​

Answers

Answered by rockingpankaj126
1

Answer:

def Readfile(): i = open("Employee.dat","rb+") x = i.readline() while(x): I = x.split(':') if (20000>=float(I[2])<=5000): print x x = i.readline()

Similar questions