Methods to read/write records from/to disk