check file opening state