Close (file.fd); e!= nil { err = &PathError{ "close", file.name, e} } file.fd = - 1 // so it can't be closed again // no need for a finalizer anymore runtime.
/notes.txt" ) if err!= nil { return } defer func () { cerr := f. Close () if err == nil { err = cerr } }() err = io.