Subj : Re: ofstream To : borland.public.cpp.borlandcpp From : John Date : Thu Sep 08 2005 05:23 pm Thanks, forgot the ios::binary. " Bruce Salzman" wrote: >> I'm trying to play with some binary files, and having a little >> problem. When I put a byte into my output file everything is fine >> unless the byte is 0x0a. When I put an oa, I get an 0d 0a in my >> output file. (I know, carrage return and line feed, but I'm not >> working with ASCII.) > >Make sure you open the stream in binary mode. > >-- >Bruce > > .