code: def get_file_sample(self, numLines=10):
          
          res = ''
          try:
              with open(self.fullname, 'r') as f:
                  for line_num, line in enumerate(f):
                      res += str(line_num).zfill(5) + ' ' + line 
                      if line_num >= numLines-1:
                          break
              return res
          except Exception as ex:
              print('cant get_file_sample in "', self.fullname, '":', str(ex))
              return res
docs: retrieve a sample of the file