13,420
edits
Changes
→PART 2 - Writing To Files
</source>
<blockquote style="margin-left:35px;">{{Admon/important|style="padding-left:25px"|Make Backup Copies of Your Data Files|Since you might make a mistake, and accidentally destroy file contents when writing to your file, it is highly recommended to make backup copies of your files prior to running your Python scripts. This can be particularly useful when performing any future assignment involving writing to files.}}</blockquote>
<ol style="margin-left:80px;"><li value="9">Issue the following command to backup both of your newly-created files and confirm backup:<source lang="python">
cp file1.txt file1.txt.bk
cp file2.txt file2.txt.bk