Merge "Add read and write option in opening file for output in the writers"