Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!psuvax1!psuvm!uh2 From: UH2@psuvm.psu.edu (Lee Sailer) Newsgroups: comp.lang.c++ Subject: Changing cout mode to ios::binary in Borland C++ Message-ID: <91123.104535UH2@psuvm.psu.edu> Date: 3 May 91 14:45:35 GMT Organization: Penn State University Lines: 15 The sybject line says most of i, I guess. MSDOS has that ittitating habit of adding a CR whenever it outputs a NL, which is fine until you try to write a program that writes a "binary" file to cout. I've tried the obvious things, without luck. For example cout << setiosflags(ios::binary) << "\n"; still sends a crlf pair to the stdout. I called Borland tech support, but they didn't seem to understand why one might ever wish to do what I want to do. So--in short. Can I turn off the \n --> \r\n translation for cout? lee