M
Mike
Folks,
I have a need to create, I guess in .NET terms, a provider for a file
I/O interface.
For example, in VB.NET
' open local file to read
Dim sr As New BinaryReader(File.Open("c:\file.txt", FileMode.open))
' open server file to write
Dim sw As New BinaryWriter(File.Open("wc:\123.txt", fileMode.write))
where the source and target streams is prepared based on the prefix of
the file name.
I want to inherit or wrap the FILE class to handle proprietary I/O.
I have this done already in C/C++ and would like to do the same, if
possible, in VB.NET.
Should/Can I use BinaryReader, BinaryWriter, File or some other class
like Stream, BufferedStream?
In other tools framework, they provides a FILE I/O class where you
override the the basic methods:
Open
Read
Write
Seek
Lock
UnLock
EOF
Close
etc. How can this be done in .NET?
Thanks
--
I have a need to create, I guess in .NET terms, a provider for a file
I/O interface.
For example, in VB.NET
' open local file to read
Dim sr As New BinaryReader(File.Open("c:\file.txt", FileMode.open))
' open server file to write
Dim sw As New BinaryWriter(File.Open("wc:\123.txt", fileMode.write))
where the source and target streams is prepared based on the prefix of
the file name.
I want to inherit or wrap the FILE class to handle proprietary I/O.
I have this done already in C/C++ and would like to do the same, if
possible, in VB.NET.
Should/Can I use BinaryReader, BinaryWriter, File or some other class
like Stream, BufferedStream?
In other tools framework, they provides a FILE I/O class where you
override the the basic methods:
Open
Read
Write
Seek
Lock
UnLock
EOF
Close
etc. How can this be done in .NET?
Thanks
--