My impression was that I could use Binary.Write for data other than byte arrays by giving the variable as a single argument of BinaryWrite. But when I do it with a short integer, it gets padded with two null bytes. I don't want this, since what I am generating is a sound file. Is there a way to do this

Binary.Write in C#
T2k
renaud.besnard
moria yizhaki
That should only write two bytes if you pass it a 16 bit integer.
Can you post some sample code that doesn't work