text: import pickle
  class Student:
      def __init__(self,rno=0,name=''):
          self.rollNo=rno
          self.name=name
          self.marks1,self.marks2,self.marks3=0.0,0.0,0.0
  
      def readMarks(self):
          print 'Enter marks of 3 subjects'
          self.marks1=float(raw_input('Subject1:'))
          self.marks2=float(raw_input('Subject2:'))
          self.marks3=float(raw_input('Subject3:'))
  
      def display(self):
          print 'Student details are:'
          print 'Rol number :',self.rollNo
          print 'Name :',self.name
          print 'Markks in 3 subjects :', self.marks1,self.marks2,self.marks3
  
  stud1=Student()
  file1=open('student1.log','rb')
  try:
      while True:
          stud1=pickle.load(file1)
          stud1.display()
  except EOFError:
      file1.close()
  