title: 'imports' statement must precede any declarations
body: <pre><code>    module module1
      imports System.Collections.Generic
      imports System.Io
          sub main()
  
  
  
              dim subject as string
              dim topic(5) as string
              dim question(5) as string
              dim foundfile as List
              dim directory as string
  
              console.writeline("enter the subject your revising")
              subject=console.readline()
  
              directory="C:\Users\Zak\Documents\revisionhog\subjects\physics\imaging"
  
              For each file as String In IO.directory.Getfiles(directory, "*.pdf", IO.SearchOption.AllDirectories)
                  foundfile.add(file)
  
              Next
  
  
              for x = 0 to 5
                  console.writeline(foundFile)
              next
  
          end sub
  end module
  </code></pre>
  
  <p>tyring to add file that i have found after a search to a list of strings.
  i thought that i had placed import before declarations???
  help???</p>