
October 11th, 2012, 03:51 PM
|
|
Contributing User
|
|
Join Date: Mar 2012
Posts: 33
Time spent in forums: 8 h 25 m 17 sec
Reputation Power: 2
|
|
b49P23TIvg is right, no point writing a program that is already done by dos or terminal
but to answer your question your problem is you print(l, file = out), this doesn't work this way at least not to my knowledge use something like the following
Code:
file = open('INFORMATION.txt', 'w')
a_file = open('MORE_INFORMATION.txt', 'w')
results = open('RESULTS.txt', 'w')
results.writeline("%s\n" % for item in file)
results.writeline("%s\n" % for item in a_file)
file.close()
a_file.close()
results.close()
That should be good enough to give you an idea of what you need to do. hope this has helped good luck with python
|