|
-
Mar 19th, 2012, 04:51 PM
#1
-
Mar 19th, 2012, 05:34 PM
#2
Re: Binarywriter, current write position
The BinaryWriter doesn't expose that information but when you created the BinaryWriter you passed it a Stream, which has a Position property. That property will throw an exception if the Stream doesn't support seeking, e.g. a NetworkStream. You'll be fine with a FileStream though, which is the most common backing store.
-
Mar 20th, 2012, 12:32 AM
#3
Re: Binarywriter, current write position
I did it again, looking at the wrong spot all the time!
I'm using a filestream already, but I was looking at the Binarywriter to find the actual position, a short look at the Filestream did give the information as needed!
Thanks.
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
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
|