Currently viewing: GipsySoft » Front Page» Articles


Write a C style string to a file.

bool WriteStringToFile( const char *pcszFilename, const char *pcszTextToWrite );

Return value

Returns true if the file was successfully written.


char szBuf[] = "Test File";
if( WriteStringToFile( "d:\\Test.txt", szBuf ) )
	//	Our string has been successfully written to file.


Click to view the source code

See also none