How to read a file into Stream

A

ad

I have a zip file (c:\aa.zip) in disk.
How can I read this file into a Stream(System.IO.Stream)?
 
S

S.M. Altaf [MVP]

From MSDN:


' Create the reader for data.
fs = New FileStream(FILE_NAME, FileMode.Open, FileAccess.Read)
Dim r As New BinaryReader(fs)
' Read data from Test.data.
For i = 0 To 10
Console.WriteLine(r.ReadInt32())
Next i
HTH
ALtaf
 

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