def strings(filename, minimum=4):
 result = ''
 with BlockFile(filename) as f:
  while True:
   (data, dlen) = f.read_block()
   if (not data):
    break
   for c in data:
    if (c in string.printable):
     result += c
     continue
    elif (len(result) >= minimum):
     (yield result)
     result = ''
    else:
     result = ''

def strings ( filename , minimum = 4 ) : result = '' with BlockFile ( filename ) as f : while True : ( data , dlen ) = f . read_block ( ) if ( not data ) : break for c in data : if ( c in string . printable ) : result += c continue elif ( len ( result ) >= minimum ) : ( yield result ) result = '' else : result = ''
print out all connected series of readable chars longer than min .