The code segments are illustrations of file manipulations
- The character that completes the code to create a new file is W
- The character that completes the code to add to a new file is A.
<h3>Creating a new file</h3>
When a new file is created, the default file mode is the write mode.
This in other words means that, we are writing to a file.
So, the character that completes the code to create a new file is W
<h3>Adding to a new file</h3>
To add texts to a file, is to append texts to the file.
This means that, the file is an existing file that needs to be updated.
So, the character that completes the code to add to a new file is A.
Read more about file manipulations at:
brainly.com/question/25324400