Flush();
if ((mNSPRMode & PR_RDONLY) == 0) Flush();
NS_IMETHODIMP FileImpl::Close()//----------------------------------------------------------------------------------------{    Flush();    if (mFileDesc==PR_STDIN || mFileDesc==PR_STDOUT || mFileDesc==PR_STDERR || !mFileDesc)        return NS_OK;    if (PR_Close(mFileDesc) == PR_SUCCESS)        mFileDesc = 0;    else        return NS_FILE_RESULT(PR_GetError());    return NS_OK;} // FileImpl::close