|
-
Feb 23rd, 2008, 08:16 PM
#1
Thread Starter
New Member
[RESOLVED] Stream reader next position
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 !
-
Feb 23rd, 2008, 08:44 PM
#2
Re: Stream reader next position
you can set the position using the BaseStream.Position method of the StreamReader object.
-
Feb 23rd, 2008, 09:02 PM
#3
Thread Starter
New Member
Re: Stream reader next position
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
-
Feb 24th, 2008, 05:36 AM
#4
Thread Starter
New Member
Re: Stream reader next position
Solved it..... You have to use seek but before you set the seek position you have to use StreamReader.DiscardBufferedData() first !!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|