Question #3

Dropdown

Complete the code.

Your program is saved in a folder. The file, "books.txt," is stored in a subfolder named "files."

How do you open the data file to add more data to the existing file?

Respuesta :

The program is an illustration of file manipulations

What are file manipulations?

File manipulations are program statements that are used to perform several operations on data files, directories and folders

The program statement

The program in Python, where comments are used to explain each line is as follows:

#This gets the file path of the file "books.txt"

path = 'files\\books.txt'

#This opens the file in append mode

file=open(path, "a")

Read more about file manipulation at:

https://brainly.com/question/15683939

Answer:

A. aFile = open("files/books.txt","a")

Explanation:

Comment above was correct