a is only reading and b is reading and writing