Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!shelby!agate!sunspot.berkeley.edu!ericco From: ericco@ssl.berkeley.edu (Eric C. Olson) Newsgroups: comp.sys.atari.st.tech Subject: REPOST: binary write question Message-ID: Date: 11 Feb 91 13:27:57 GMT Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: CEA @ UC Berkeley, Berkeley, CA, USA. Lines: 19 On the slim chance that my first posting was not distributed, this is a repost. My question is basic: how do I write character code 10 using write, as in: { char c = 10; int fd = open("test.dat", O_BINARY|O_WRONLY) write(fd, &c, sizeof(c)); close (fd) } When I do this, i get carriage return AND linefeed in the file "test.dat". I'm using Laser C. Thanks in advance, Eric -- Eric ericco@ssl.berkeley.edu