Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ames!dftsrv!mimsy!mojo!burgoyne From: burgoyne@eng.umd.edu (John R. Burgoyne) Newsgroups: comp.windows.ms Subject: "OpenFile" can it do ASCII mode? "open" can, with constants Message-ID: <1990Apr9.044646.5889@eng.umd.edu> Date: 9 Apr 90 04:46:46 GMT Sender: news@eng.umd.edu (The News System) Organization: Maryversity of Uniland, College Park Lines: 23 I am trying to use the Windows "OpenFile" command to write ASCII text to a file. (The references to the "OpenFile" command are on pgs. 383-4 of the Version 2.0 SDK Programmer's Reference) The problem is that "OpenFile" defaults to writing files in binary mode and there doesn't appear to be any way to write the file in ASCII text mode. Thus, my CR/LF commands get written literally, rather than as CR/LFs. The standard "open" command from C has constants which can be used to make the file write in ASCII text mode correctly. However, the "open" constants seem to be incompatible with the Windows "OpenFile" command. I have been able to use "open" to successfully write ASCII text files from my Windows program. Of course, I want to use the Windows "OpenFile" command to conform to Bill G's standards and to make my program able to use DDE in the future. Does anybody know how to solve the above problem? Any help is greatly appreciated.