Exemplo n.º 1
0
 def getValuesFromCurrentLine(self):
     """ Reads and returns the next record from the current line of the file. """
     line = self.db_file.readline()
     if len(line) < 1: #if database file is empty
         FileProcessorExceptions.error_out_of_file() # raising exception
     else:
         self.last_line_num += 1
     return Parser.Parser.parseString(string.rstrip(line))