R
rn5a
What's the difference between the 'Stream' object & the 'FileStream'
object?
A file can be opened using the following code snippets:
--------------------
'create a File object & StreamReader
Dim objFile As New File(Server.MapPath("Page1.html"))
Dim sReader As StreamReader
'open the file
sReader = objFile.OpenText
--------------------
--------------------
'using the Open method
Dim objFile As New File(Server.MapPath("Page1.html"))
Dim objStream As Stream
objStream = objFile.Open(FileMode.OpenCreate, FileAccess.Read)
object?
A file can be opened using the following code snippets:
--------------------
'create a File object & StreamReader
Dim objFile As New File(Server.MapPath("Page1.html"))
Dim sReader As StreamReader
'open the file
sReader = objFile.OpenText
--------------------
--------------------
'using the Open method
Dim objFile As New File(Server.MapPath("Page1.html"))
Dim objStream As Stream
objStream = objFile.Open(FileMode.OpenCreate, FileAccess.Read)