StreamReader and seeking
问题 can you use streamreader to read a normal textfile and then in the middle of reading close the streamreader after saving the current position and then open streamreader again and start reading from that poision ? if not what else can i use to accomplish the same case without locking the file ? something like this: var fs = File.Open(@\"C:\\testfile.txt\", FileMode.Open, FileAccess.Read); var sr = new StreamReader(fs); Debug.WriteLine(sr.ReadLine());//Prints:firstline var pos = fs.Position;