Yes the line of code for the output stream looked like this: ofstream output("/home/nathan/binary_test",ios::trunc | ios::binary); On December 12, 2004 08:39 am, Aaron Patrick Lehmann wrote: > Did you set the 'b' mode flag on the stream when you opened it? > > Aaron Lehmann