func (f *File) Close() (err error) {
	if f.f == nil {
		err = ErrAlreadyClosed
		return
	}
	if err = f.f.Close(); err == nil {
		return
	}
	f.f = nil
	_, err = f.Stat()
	return
}
// Close the file if it is open
Close the file if it is open
// Close the file if it is open
func (f *File) Close() (err error) {
	if f.f == nil {
		err = ErrAlreadyClosed
		return
	}
	if err = f.f.Close(); err == nil {
		return
	}
	f.f = nil
	_, err = f.Stat()
	return
}
func ( f * File ) Close ( ) ( err error ) { if f . f == nil { err = ErrAlreadyClosed return } if err = f . f . Close ( ) ; err == nil { return } f . f = nil _ , err = f . Stat ( ) return }
Close the file if it is open
Close the file if it is open