Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!janus.Berkeley.EDU!kipnis From: kipnis@janus.Berkeley.EDU (Gary Kipnis) Newsgroups: comp.sys.ibm.pc Subject: line feed / carriage return problem Message-ID: <31696@ucbvax.BERKELEY.EDU> Date: 4 Oct 89 19:26:06 GMT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: kipnis@janus.Berkeley.EDU (Gary Kipnis) Organization: University of California, Berkeley Lines: 16 Hi everyone, I have an 80x25 array of char, and I am trying to dump it to a file using MSC's write(). The problem occurrs when there are exactly 80 chars in any row, since I have to add CR and LF to the end of the row s.t. I get DOS' return char, the actual line ends up taking 82 char and when I use DOS' 'type' command a line would take up 2 line with second line being blank. If I were to print only 78 char, I could make 79's char == CR and 80's == LF, but how do I go about printing lines with 80 characters and only getting 1 line on the screen per a line of characters. Thank You, gary