The correct answer is C. OpenText method.
The OpenText method opens a file for reading or writing. The file can be a text file or a binary file. The OpenText method takes the following parameters:
- The name of the file to open.
- The mode in which to open the file. The mode can be “Read”, “Write”, or “Append”.
- The encoding to use for the file. The encoding can be “ANSI”, “Unicode”, or “UTF-8”.
The OpenText method returns a TextStream object that can be used to read or write data to the file.
The CreateText method creates a new text file. The CreateText method takes the following parameters:
- The name of the file to create.
- The encoding to use for the file. The encoding can be “ANSI”, “Unicode”, or “UTF-8”.
The CreateText method returns a TextStream object that can be used to read or write data to the file.
The AppendText method opens a file for appending data. The AppendText method takes the following parameters:
- The name of the file to open.
- The encoding to use for the file. The encoding can be “ANSI”, “Unicode”, or “UTF-8”.
The AppendText method returns a TextStream object that can be used to write data to the file.
The WriteText method writes data to a text file. The WriteText method takes the following parameters:
- The TextStream object to write to.
- The data to write.
The WriteText method returns the number of characters written.
In conclusion, the OpenText method is used to open a sequential access file for output.