I am getting the error
line 9, in hasMoreCommands if self.asmfile.readline(): ValueError: I/O operation on closed f