Commonly Used Output Methods Defined by BinaryWriter : BinaryWriter « File Directory Stream « C# / CSharp Tutorial






MethodDescription
void Write(sbyte val)Writes a signed byte.
void Write(byte val)Writes an unsigned byte.
void Write(byte[ ] buf)Writes an array of bytes.
void Write(short val)Writes a short integer.
void Write(ushort val)Writes an unsigned short integer.
void Write(int val)Writes an integer.
void Write(uint val)Writes an unsigned integer.
void Write(long val)Writes a long integer.
void Write(ulong val)Writes an unsigned long integer.
void Write(float val)Writes a float.
void Write(double val)Writes a double.
void Write(char val)Writes a character.
void Write(char[ ] buf)Writes an array of characters.
void Write(string val)Writes a string using its internal representation, which includes a length specifier.










15.27.BinaryWriter
15.27.1.Commonly Used Output Methods Defined by BinaryWriter
15.27.2.Write and read back binary data
15.27.3.Write decimal, strings and char to a file using the BinaryWriter
15.27.4.Move internal position for a BinaryWriter
15.27.5.Write/Read int, float, char array and bool to a binary file using BinaryWriter
15.27.6.Use BinaryWriter to save data in binary format
15.27.7.Binary Writer Reader