outFile = new nsOutputFileStream(*mailFile);
outFile = new nsOutputFileStream(*mailFile, PR_WRONLY | PR_CREATE_FILE, 00600);
WriteTempMailFile(nsFileSpec *mailFile){  nsOutputFileStream      *outFile;         // the actual output file stream  nsIMsgIdentity *identity = GetHackIdentity();  const char *to = "rhp@netscape.com";  char  *aEmail = nsnull;  PRUnichar  *aFullName = nsnull;  char  addr[256];  char  subject[256];  char  emailMessage[2048];    identity->GetEmail(&aEmail);  identity->GetFullName(&aFullName);  PR_snprintf(addr, sizeof(addr), "%s <%s>", aFullName, aEmail);  PR_FREEIF(aEmail);  PR_FREEIF(aFullName);        PR_snprintf(subject, sizeof(subject), "Spam from: %s", addr);    PR_snprintf(emailMessage, sizeof(emailMessage), email, to, subject);  outFile = new nsOutputFileStream(*mailFile);	if (! outFile->is_open())   {	    return NS_ERROR_FAILURE;  }  outFile->write(emailMessage, PL_strlen(emailMessage));  outFile->close();  return NS_OK;}