Please see the comment by
Ron Beyer, as well as my reply to your recent question:
how to create thread in c# and how to call thread[
^]:
You really need to stop downloading Java code, pasting it into the C# editor and expecting it to run. There are a lot of concepts here that are very different (you don't derive a C# class from Thread), you should pick up a book and read it before diving into advanced methods like threading.
Now I understand what he meant.
This is becoming a real abuse. Doing what you are doing is counter-productive, the waste of time at best.
The problem of using
System.IO.StreamReader
is really, really simple. You should just forget your Java code and write the code starting from the goal of it, not from existing code. If you explain such goal and explain the problem, we will gladly help you. But it's very likely that you can easily put it right if you simply read original documentation with attention:
http://msdn.microsoft.com/en-us/library/system.io.streamreader%28v=vs.110%29.aspx[
^].
—SA