How to create a save option ? to save change that is made in .txt file from python
<p>this is my assignment:
Description: We are interested to develop a Costumer Management System for a company, which stores customers and orders information and helps system user to search, edit, and enter data. Each customer has a <code>CustomerNumber</code> (ID), <code>Name</code>, <code>Address</code>, and <code>Phone</code> which can be stored in a list such as <code>[1, “Amin Milani Fard”, “Columbia College”, 778]</code>. Each order has an <code>OrderNumber</code>, <code>CostumerNumber</code>, <code>OrderDate</code>, and <code>OrderedItemsList</code> such as <code>[5,1,”20/06/2011”, [“XYZ”, “ABC”, “LMNOP”]]</code>.</p>

<p>You will be given two input text files, customer.txt containing list of costumers, and orders.txt containing list of orders. First you need to read the input file and then based on the user choice apply a search, edit, add, or remove on customer and/or order list. Your program should repeat showing a menu as the following while the user did not entered 9 to quit:</p>

<pre><code>**** Welcome to My Customer Management System ****
Please select an option
1.  Load the input files
2.  Search a customer
3.  Search an order
4.  Add a new customer
5.  Add a new order
6.  Delete a customer
7.  Delete an order
8.  Save data in files 
9.  Quit
</code></pre>

<p>im having problem with save data in files, i just dont get it this part. I thought when u make changes in option 4 ,5,6,7 it will automatically save. Is there anyway to save a txt file from python?</p>
