func NewOpenReaderFile(r io.ReadCloser) rh.FID {
	file := &OpenReaderFile{
		openFile: newOpenFile(),
	}
	ir, iw := interruptible.Pipe()
	go func() {
		io.Copy(iw, r)
		iw.Close()
		r.Close()
	}()
	file.r = ir
	return file
}
// NewOpenReaderFile returns an FID corresponding to an open reader file.
NewOpenReaderFile returns an FID corresponding to an open reader file.
// NewOpenReaderFile returns an FID corresponding to an open reader file .
func NewOpenReaderFile(r io.ReadCloser) rh.FID {
	file := &OpenReaderFile{
		openFile: newOpenFile(),
	}
	ir, iw := interruptible.Pipe()
	go func() {
		io.Copy(iw, r)
		iw.Close()
		r.Close()
	}()
	file.r = ir
	return file
}
func NewOpenReaderFile ( r io . ReadCloser ) rh . FID { file := & OpenReaderFile { openFile : newOpenFile ( ) , } ir , iw := interruptible . Pipe ( ) go func ( ) { io . Copy ( iw , r ) iw . Close ( ) r . Close ( ) } ( ) file . r = ir return file }
NewOpenReaderFile returns an FID corresponding to an open reader file.
NewOpenReaderFile returns an FID corresponding to an open reader file .