|
COMPLETED
PROJECT DOWNLOAD |
What do we have in this chapter?
-
-
Stream Types
-
Stream
Class
-
Basic Operations
-
Common Properties
-
Synchronous and Asynchronous
I/O
-
Base Streams
-
File Stream
-
Creating or Opening a
File
-
-
C# Example: FileStream
-
VB .NET Example: FileStream
-
Another C++ Example:
FileStream
-
Another C# Example: FileStream
-
Another VB .NET Example:
FileStream
-
-
Closing a File
-
C++ Program Example:
Writing and reading text – StreamWriter and StreamReader
-
C# Program Example: Writing
and reading text – StreamWriter and StreamReader
-
-
C++ Program Example:
Writing and Reading Binary – BinaryWriter and BinaryReader
-
C# Program Example: Writing
and Reading Binary – BinaryWriter and BinaryReader
-
VB .NET Program Example:
Writing and Reading Binary – BinaryWriter and BinaryReader
-
-
Creating a Memory Stream
-
C++ Program Example:
MemoryStream
-
C# Program Example: MemoryStream
-
Handling Memory Stream
I/O
-
Network Stream
-
Creating a Network Stream
-
Handling Network I/O
-
-
C# NetworkStream Program
Example – Receiver Program
-
VB .NET NetworkStream
Program Example – Receiver Program
-
-
C# NetworkStream Program
Example – Sender Program
-
VB .NET NetworkStream
Program Example – Sender Program
-
-
BufferedStream Class
-
C++ BufferedStream Program
Example
-
C# BufferedStream Program
Example
-
VB .NET BufferedStream
Program Example
-
-
C++ CryptoStream Program
Example
-
C# CryptoStream Program
Example
-
VB .NET CryptoStream
Program Example
-
-
C++ SSLStream Server
Program Example
-
C# SSLStream Server Program
Example
-
-
C# SSLStream Client Program
Example
-
-
C++ NegotiateStream Server
Program Example
-
C# NegotiateStream Server
Program Example
-
-
C# NegotiateStream Client
Program Example
-
-
Readers and Writers
-
StreamReader and StreamWriter
-
C++ StreamWriter and
StreamReader Program Example
-
C# StreamWriter and StreamReader
Program Example
-
VB .NET StreamWriter
and StreamReader Program Example
-
-
C# StreamReader and StreamWriter
Program Example
-
VB .NET StreamReader
and StreamWriter Program Example
-
-
C++ BinaryReader and
BinaryWriter Program Example
-
C# BinaryReader and BinaryWriter
Program Example
-
VB .NET BinaryReader
and BinaryWriter Program Example
Note: If you want to experience a complete C++ .NET/C++-CLI programming
tutorial please jump to
Visual C++ .NET programming tutorial.
Summary
Streams provide a common and very simple way to perform I/O on
operating system resources in the .NET Framework. It doesn’t matter if you’re
writing to a network or a file; the I/O technique is fundamentally the same.
In addition, you can layer a stream on top of another stream to make I/O operations
even more powerful. Our discussions will describe streams using the synchronous
I/O patterns in which calls to perform I/O will block until the I/O operation
is complete. In the next chapter, we’ll present threading and the
asynchronous pattern in the .NET Framework. We’ll show you how to perform
I/O operations asynchronously that will enable you to develop greater,
more flexible applications. |
|