1. Create a text file in your Python directory
* for example, save a text file called "users.txt" with these user names (jamse, tommy, jack) written into the users.txt file.
2. Launch your Python command line
3. Issue these commands
list=[]
file_obj = open('users.txt', 'r')
list = file_obj.readline()
print(list)
4. You should now see this:
james tommy jack
Actually what this did is create a list of 16 objects. Object list[4] = s.
If you want each user name to be its own object within the list resulting in a list of 3 objects, then you'd
follow this outline, from http://docs.python.org/library/csv.html