Article View: comp.windows.ms
Article #2250Re: "OpenFile" can it do ASCII mode? "open" can, with constants
From: Shirley Jupiter
Date: Tue, 10 Apr 1990 20:24
Date: Tue, 10 Apr 1990 20:24
12 lines
776 bytes
776 bytes
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
Technical Details
Message-ID:
<9280003@hpavla.AVO.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!hplabs!hpda!hpwala!hpavla!jupiterReferences:
<1990Apr9.044646.5889@eng.umd.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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