◄CStdioFile► ◄Up► ◄Contents► ◄Index► ◄Back► ──Microsoft Foundation Classes────────────────────────────────────────────── virtual void WriteString( const char FAR* lpsz ) throw( CFileException ); Parameter Description <lpsz> Specifies a pointer to a buffer containing a null-terminated text string. Remarks Writes data from a buffer to the file associated with the CStdioFile object. The terminating null character ('\0') is not written to the file. A newline character is written as a carriage return-linefeed pair. WriteString throws an exception in response to several conditions, including the disk-full condition. This is a text-oriented write function available only to CStdioFile and its descendents. ◄CFile::Write► is also available, but rather than terminating on a null character, it writes the requested number of bytes to the file. Example extern CStdioFile f; char buf[] = "test string"; f.WriteString( buf ); -♦-