1: 2: 3: 4: 5: 6: 7: 8: 9:
// made-up bit definitions read = 1 ;bit 1 write = 2 ;bit 2 beginning = 4 ;bit 3 end = 8 ;bit 4 lock = 16; bit 5 // so write at the end (append) would be: append = 10 ;bits 2 and bit 4 = 2+8