File length

N

nondos

Hello

I wrote a sub that read stream and then write it to file
I try to track the stream by collecting the stream length every time like
this:

Dim s As StreamWriter = New StreamWriter(_filename , False)

response = streamReader.ReadLine()

progress += response.Length

s.Write(response)

s.Write("" & Chr(13) & "" & Chr(10) & "")



but when i check the progress value and file value it's not equel somthing
like this:

progress = 520,239

actually file size from windows explorer = 528,362



any idea why?

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top