The mode in which a file variable is opened specifies which operations can be performed on the file associated with the file variable, and also what happens to the file when the file variable is opened. If a file variable is opened in write-only mode then operations on the file associated with the file variable are allowed as follow: