title: Is it possible to refer to project files in code?
body: <p>In Visual Studio (VB.NET), I want to open a file and read the contents into a string. It's easy enough when the file is in a known location on disk, since you can reference it as C:\Windows\foo.txt or whatever. Is there any way to refer to files based on their location in the solution? For example, MySolution\MyProject\MyFolder\foo.txt. The file to read will be a SQL file, so there won't be any code objects in it to work with.</p>
  
  <p>I use a whole bunch of different solutions that are stored in various places on disk, so I really don't want to have to deal with the file system directly. Any ideas?</p>