# RecordIO## Write```gof,e:=os.Create("a_file.recordio")w:=recordio.NewWriter(f)w.Write([]byte("Hello"))w.Write([]byte("World!"))w.Close()```## Read1. Load chunk index:```gof,e:=os.Open("a_file.recordio")idx,e:=recordio.LoadIndex(f)fmt.Println("Total records: ",idx.Len())```2. Create one or more scanner to read a range of records. The following example reads the range [1, 3), i.e., the second and the third records:```gof,e:=os.Open("a_file.recordio")s:=recrodio.NewScanner(f,idx,1,3)fors.Scan(){fmt.Println(string(s.Record()))}ifs.Err()!=nil&&s.Err()!=io.EOF{log.Fatalf("Something wrong with scanning: %v",e)}```