Check if files are readable and writable.