Mega Code Archive

 
Categories / C# Tutorial / File Directory Stream
 

Commonly Used Output Methods Defined by BinaryWriter

Method Description 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.