if (str == inString)
if (!different)
Compare(nsString& str, nsString& aFileName){  // Open the file in a Unix-centric way,  // until I find out how to use nsFileSpec:  char* filename = aFileName.ToNewCString();  FILE* file = fopen(filename, "r");  if (!file)  {    fprintf(stderr, "Can't open file %s", filename);    perror(" ");    delete[] filename;    return 2;  }  delete[] filename;  // Inefficiently read from the file:  nsString inString;  char c;  while ((c = getc(file)) != EOF)    inString += c;  if (file != stdin)    fclose(file);  if (str == inString)    return 0;  else  {    char* cstr = str.ToNewCString();    printf("Comparison failed:\n-----\n%s\n-----\n", cstr);    Recycle(cstr);    return 1;  }}