Javatpoint Logo
Javatpoint Logo

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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA