Writing data to a file is referred to as . . . . . . . .

Reading a file
Writing a file
Appending a file
Executing a file

The correct answer is B. Writing a file.

Writing a file is the process of creating or appending data to a file. This can be done using a variety of programming languages and tools.

Option A, Reading a file, is the process of retrieving data from a file.

Option C, Appending a file, is the process of adding data to the end of a file.

Option D, Executing a file, is the process of running a program or script that is stored in a file.