check given file writabl read param file file check given file read file readonli file file file file exist file write file exist file creat file io except io exc 