func OpenReader(name string) (*ReadCloser, error) {
	f, err := os.Open(name)
	if err != nil {
		return nil, err
	}

	fstat, err := f.Stat()
	if err != nil {
		f.Close()
		return nil, err
	}

	rc := new(ReadCloser)
	if err := rc.init(f, fstat.Size()); err != nil {
		f.Close()
		return nil, err
	}

	rc.f = f

	return rc, nil
}
// OpenReader will open the wad file specified by name and return a ReadCloser.
OpenReader will open the wad file specified by name and return a ReadCloser.
// OpenReader will open the wad file specified by name and return a ReadCloser .
func OpenReader(name string) (*ReadCloser, error) {
	f, err := os.Open(name)
	if err != nil {
		return nil, err
	}
	fstat, err := f.Stat()
	if err != nil {
		f.Close()
		return nil, err
	}
	rc := new(ReadCloser)
	if err := rc.init(f, fstat.Size()); err != nil {
		f.Close()
		return nil, err
	}
	rc.f = f
	return rc, nil
}
func OpenReader ( name string ) ( * ReadCloser , error ) { f , err := os . Open ( name ) if err != nil { return nil , err } fstat , err := f . Stat ( ) if err != nil { f . Close ( ) return nil , err } rc := new ( ReadCloser ) if err := rc . init ( f , fstat . Size ( ) ) ; err != nil { f . Close ( ) return nil , err } rc . f = f return rc , nil }
OpenReader will open the wad file specified by name and return a ReadCloser.
OpenReader will open the wad file specified by name and return a ReadCloser .