func (f *File) openFile(flag int, mode os.FileMode) (err error) {
	_, err = f.Stat()
	if err != nil {
		return
	}
	if f.f != nil {
		err = ErrFileOpen
		return
	}
	f.f, err = os.OpenFile(f.Path(), flag, mode)
	return
}
// openFile with the specified flags and mode
openFile with the specified flags and mode
// openFile with the specified flags and mode
func (f *File) openFile(flag int, mode os.FileMode) (err error) {
	_, err = f.Stat()
	if err != nil {
		return
	}
	if f.f != nil {
		err = ErrFileOpen
		return
	}
	f.f, err = os.OpenFile(f.Path(), flag, mode)
	return
}
func ( f * File ) openFile ( flag int , mode os . FileMode ) ( err error ) { _ , err = f . Stat ( ) if err != nil { return } if f . f != nil { err = ErrFileOpen return } f . f , err = os . OpenFile ( f . Path ( ) , flag , mode ) return }
openFile with the specified flags and mode
openFile with the specified flags and mode