Open the file associated with the data block if is not already open
| 29 | |
| 30 | // Open the file associated with the data block if is not already open |
| 31 | bool DataBlock::Open(void) |
| 32 | { |
| 33 | if (diskfile == 0) |
| 34 | return false; |
| 35 | |
| 36 | if (diskfile->IsOpen()) |
| 37 | return true; |
| 38 | |
| 39 | return diskfile->Open(); |
| 40 | } |
| 41 | |
| 42 | // Read some data at a specified position within a data block |
| 43 | // into a buffer in memory |