File access denied

Reported by │ If This Problem Occurs ═════════════╪═══════════════════════════════════════════════════ Reset or │ If FileMode allows writing and the name assigned Append │ to the file variable specifies a directory or a │ read-only file. Rewrite │ The directory is full, or the name assigned to │ the file variable specifies a directory or an │ existing read-only file. Rename │ The name assigned to the file variable specifies │ a directory, or the new name specifies an │ existing file. Erase │ The name assigned to the file variable specifies │ a directory or a read-only file. MkDir │ A file with the same name exists in the parent │ directory, or there is no room in the parent │ directory, or the path specifies a device. RmDir │ The directory isn't empty, or the path doesn't │ specify a directory, or the path specifies the │ root directory. Read or │ (On a typed or untyped file): The file is not BlockRead │ open for reading. Write or │ (On a typed or untyped file): The file is not BlockWrite │ open for writing.