Utilize the Full Functionality of the Whidbey File Management - Classes that Supports System.IO.namespace
(Page 2 of 8 )
The following classes will support System.IO.namespace in VB.NET.
1. The class Binary Reader used for Reads primitive data types as binary values. Primitive data types are those that are not defined in terms of other data types. Because primitive data types are the basis for all other types, they cannot have element content or attributes. Examples of primitive data types are string, float, decimal, anyURI, and QName.
Usage:
Dim objBinReader as New BinaryReader(File.Open _ (“C:\mysamplefile.txt”, FileMode.Open))
2. The class BinaryWriter used for writes primitive data types as binary values to a stream.
Usage:
Dim objBinWriter as New BinaryWriter(File.Open _ (“C:\mysamplefile.txt”, FileMode.Create))
3. The class BufferedStream used for buffering to another stream for read and write operations.
Usage:
‘ Create an NetworkStream object “objNetStream” that
owns clientSocket
Dim objNetStream as New NetworkStream(ClientSocket, True)
‘ Create an BufferedStream object
‘ “objBufStream” on top of the NetworkStream
Dim objBufStream as New _ BufferedStream(objNetStream, _ intStreamBufferSize)
Note: The NetworkStream class provides methods for sending and receiving data over Stream sockets in blocking mode.
4. The class Directory used for creating, copying, moving, deleting and renaming directories and sub directories. The Directory class includes the System.IO namespace.
Next: More Classes and Public Methods >>
More .NET Articles
More By Benoyraj Baskaran