Message-ID: <004a01bda4e1$84aa6bc0$200d18ac@OSEK12.hosp.dk> From: "=?iso-8859-1?Q?S=F8ren_Merser?=" To: "DJGPP" Subject: writing binary data Date: Wed, 1 Jul 1998 13:15:08 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Precedence: bulk HI I'm having trouble doing this: vector v; - populate vector -print vector to stdout OK // write vector to binary ofstream ofs("data.dat", ios::out | ios::bin | ios::trunc ); ostream_iterator ofi(ofs,""); copy(v.begin(), v.end(), ofi); compiles but just writes odinary text file?? Any help apperciated