Added a read+write file validator