From: "DeHackEd" Newsgroups: comp.os.msdos.djgpp References: <77gce8$35c$3 AT fe2 DOT cs DOT interbusiness DOT it> Subject: Re: about LINE FEED Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.0810.800 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800 Message-ID: <0uQm2.4063$id.57@cabot.ops.attcanada.net> Date: Tue, 12 Jan 1999 17:58:00 -0500 NNTP-Posting-Host: 142.194.222.146 X-Trace: cabot.ops.attcanada.net 916182012 142.194.222.146 (Tue, 12 Jan 1999 23:00:12 GMT) NNTP-Posting-Date: Tue, 12 Jan 1999 23:00:12 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Are you displaying the output to the screen? If you just want to return to the start of the line, use '\r'. If you want to write to a file, open it for binary mode. I don't know what the ascii codes for these signals are, but I havn't had any problems with \r using printf, so streams shouldn't be any different. Bonifati wrote in message news:77gce8$35c$3 AT fe2 DOT cs DOT interbusiness DOT it... >Help! I need to write an LF character (without the CR), but > > an output stream << "\012"; > >produces CR+LF (isn't LF ascii code=10=Ah ?) > >Antonio Bonifati >abonifati AT telsa DOT it > > > >