I was able to write some code with the help of the community here, but I am having a problem where my python runs through the iterations and writting out really really slow as apposed to my other script that does the same exact thing but that one ran super fast, is there anything noticeable in this code that might be causing that?
with open('c:/file.sql') as inf, open('c:/file.txt','w') as outf:
for i in xrange(47):
inf.next()
for line in inf:
data = line.split(',')
if len(data) < 15:
inf.next()
elif len(data) > 35:
hash = data[13]
select = hash[3:len(hash)-1]
outf.write(select + '\n')
smaller version of your code: