Answer:
True
Step-by-step explanation:
If a file with the same name already exists, its contents are discarded and the file is treated as a new empty file. For example, in the following program, if “test. txt” already exists, its contents are removed and “GeeksforGeeks” is written to it.