Home » C# BinaryWriter

C# BinaryWriter

by Online Tutorials Library

C# BinaryWriter

C# BinaryWriter class is used to write binary information into stream. It is found in System.IO namespace. It also supports writing string in specific encoding.

C# BinaryWriter Example

Let’s see the simple example of BinaryWriter class which writes data into dat file.

Output:

Data written successfully... 
Next TopicC# BinaryReader

You may also like