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.
Data written successfully...