Drop extra lines from beginning and use my code snippet: http://www.daniweb.com/software-development/python/code/293490
# text based data input with data accessible
# with named fields or indexing
from __future__ import print_function ## Python 3 style printing
from collections import namedtuple
import string
filein = open("sample.dat")
datadict = {}
for line in filein:
if line.startswith(('>INFO','\n')):
continue
headerline = line.lower().replace('-','').replace('(','').replace(')', '') ## lowercase field names Python style
break
## first non-letter and non-number is taken to be the separator
separator = headerline.strip(string.lowercase + string.digits)[0]
print("Separator is '%s'" % separator)
headerline = [field.strip() for field in headerline.split(separator)]
Dataline = namedtuple('Dataline',headerline)
print ('Fields are:',Dataline._fields,'\n')
for data in filein:
data = [f.strip() for f in data.rstrip('\n '+separator).split(separator)]
d = Dataline(*data)
print(d.flashcount)