filelist << "FAILED: " << aFilename << "[" << failpos << "]" << endl;
char buffer[100]; printf("FAILED: %s [%i]\n",aFilename,failpos);
void parseFile (const char* aFilename,int size){  //debug  //aFilename="s:\\ns\\raptor\\parser\\tests\\html\\home01.html";  //aFilename="c:\\temp\\sun\\test00000.html";  //aFilename="c:\\windows\\temp\\test.html";  aFilename="s:\\readHTML-VC\\test.html";  //aFilename="c:\\temp\\sun\\commentbug.html";  char filename[_MAX_PATH];  strcpy(filename,aFilename);  strcat(filename,".tokens");  {    nsIParser* parser;    static NS_DEFINE_IID(kCParserIID, NS_IPARSER_IID);    static NS_DEFINE_IID(kCParserCID, NS_PARSER_IID);    nsresult rv = nsComponentManager::CreateInstance(kCParserCID,                                                nsnull,                                                kCParserIID,                                                (void **)&parser);    CHTMLContentSink theSink;    parser->setContentSink(&theSink);    parser->parse(aFilename);    NS_RELEASE(parser);  }  int failpos=0;  if(!compareFiles(aFilename,filename,failpos)) {    filelist << "FAILED: " << aFilename << "[" << failpos << "]" << endl;  }}