1e5 Subj : Re: ofstream To : borland.public.cpp.borlandcpp From : Bruce Salzman Date : Thu Sep 08 2005 03:14 pm > 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 . 0