Ok, well, then ignoring all the details about web and shared folders, we'll focus just on StreamReader.
1. Import the correct namespace, which in this case would be: System.IO
2. Define the StreamReader. You can define in combination with its constructor. In C#, for example:
StreamReader sr = new StreamReader("TestFile.txt");
3. Read from it, into a string:
string line;
while ((line = sr.ReadLine()) != null)
{
//Do Something
}
There are lots of variations. One thing I like to do is first create a FileStream object, and point that to my file. This gives me a lot of control over the access method, whether I want to share the file, and so on.
Then, I use a StreamReader constructor that creates a Streamreader from the FileStream.
Notes: Streamreader is buffered, so it's very fast, but you can often get lost in where you THINK the file is positioned, and where it actually IS positioned.
I'm sure you have more questions, just keep asking within this thread.