Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!hplabs!hpda!hpwala!hpavla!jupiter From: jupiter@hpavla.AVO.HP.COM (Shirley Jupiter) Newsgroups: comp.windows.ms Subject: Re: "OpenFile" can it do ASCII mode? "open" can, with constants Message-ID: <9280003@hpavla.AVO.HP.COM> Date: 10 Apr 90 20:24:39 GMT References: <1990Apr9.044646.5889@eng.umd.edu> Organization: Hewlett-Packard Avondale Division Lines: 12 This is an example of the method I've used to write text files. hFile = OpenFile ("FILENAME", &OfStruct, OF_CREATE | OF_WRITE); write (hFile, "string", 6); buffer[0] = '\r'; buffer[1] = '\n'; write (hFile, buffer, 2); close (hFile); --Shirley Jupiter Hewlett-Packard Avondale Division jupiter@hpavla.AVO.HP.COM