I am unsure how to read in an .txt file in windows with python. I am currently using Python 2.6
On linux in the terminal you simply type e.g. file.py < inpt.txt , where "file" is the name of the python file, containing any arbitrary program and "inpt" is the name of the text file containing any arbitrary data that the program must manipulate.
When I program from home I use the "Python GUI" and run my programs in the "Shell".
Thanks any help on how I can do this would be appreciated, it is not specifically time sensitive but it would help alot to know how to do this from home via Windows XP Professional.
Appreciate any Help
Ava19
On linux in the terminal you simply type e.g. file.py < inpt.txt , where "file" is the name of the python file, containing any arbitrary program and "inpt" is the name of the text file containing any arbitrary data that the program must manipulate.
When I program from home I use the "Python GUI" and run my programs in the "Shell".
Thanks any help on how I can do this would be appreciated, it is not specifically time sensitive but it would help alot to know how to do this from home via Windows XP Professional.
Appreciate any Help
Ava19
Comment