func (h *File) Load(fname string) (err error) {
	defer func() {
		if e := recover(); e != nil {
			*h = nil
			err = e.(error)
		}
	}()

	var buf []byte
	buf, err = ioutil.ReadFile(fname)
	if err != nil {
		panic(err)
	}
	return h.LoadString(fname, string(buf))
}
// Load File from a hosts format file fname. Return an Error, if any.
Load File from a hosts format file fname. Return an Error, if any.
// Load File from a hosts format file fname . Return an Error if any .
func (h *File) Load(fname string) (err error) {
	defer func() {
		if e := recover(); e != nil {
			*h = nil
			err = e.(error)
		}
	}()
	var buf []byte
	buf, err = ioutil.ReadFile(fname)
	if err != nil {
		panic(err)
	}
	return h.LoadString(fname, string(buf))
}
func ( h * File ) Load ( fname string ) ( err error ) { defer func ( ) { if e := recover ( ) ; e != nil { * h = nil err = e . ( error ) } } ( ) var buf [ ] byte buf , err = ioutil . ReadFile ( fname ) if err != nil { panic ( err ) } return h . LoadString ( fname , string ( buf ) ) }
Load File from a hosts format file fname.
Load File from a hosts format file fname .