// open file to store formatted data into
TCHAR* sNewsFile = _T( "News.asp" );
CStdioFile cfASP ( sNewsFile, CFile::modeCreate | CFile::modeWrite );
// output the static part of the asp file - the function declaration,
// the ASPWire image and the heading
cfASP.WriteString ( _T("<%\nfunction ShowNews ( )\n{\n") );
cfASP.WriteString ( _T("\tOut('');\n") );
cfASP.WriteString ( _T("\tOut(' (Read how this is done)
');\n") ); cfASP.WriteString ( _T("\tOut('
") ); break; case 3: // title sLine.Replace ( "'", "\\'" ); cfASP.WriteString ( sLine ); cfASP.WriteString ( _T(" | ") ); if ( bNewRow ) cfASP.WriteString ( _T ( "