Add check file open