title: Search directory for specific string
body: <p>I'm trying to search through a specific directory full of header files, and look through each header file, and if any file has a string "struct" in it, I just want the program to print which file has it.</p>
  
  <p>I have this so far, but it's not working correctly, can you help me figure it out:</p>
  
  <pre><code>import glob
  import os
  os.chdir( "C:/headers" )
  for files in glob.glob( "*.h" ):
      f = open( files, 'r' )
      for line in f:
          if "struct" in line:
              print( f )
  </code></pre>