Thanks..my first problem is solved but now I need to move the next read position of the filestream back to the beginning + offset ... I have tried using seek and position but I cant make them work !
Printable View
Thanks..my first problem is solved but now I need to move the next read position of the filestream back to the beginning + offset ... I have tried using seek and position but I cant make them work !
you can set the position using the BaseStream.Position method of the StreamReader object.
But it doesnt work. I read in say 4 characters...process them..then do :
srReader.Basestream.Position=1
but it still reads starting at character 5
Solved it..... You have to use seek but before you set the seek position you have to use StreamReader.DiscardBufferedData() first !!