Get input in Python
Santhosh Kumar
santhosh.vkumar at gmail.com
Mon Jan 24 01:10:10 EST 2011
Hi all,
I am trying to get input from the file* open(sys.argv[1]). *So,
while executing I will refer it as python filename.py sample_file.txt this
will root to my sys.argv[]. So I need to follow the same but I also need to
give input Example : python filename.py <input_text> <sample_file.txt>. How
should I do coding for this.
Thanks in Advance,
Santhosh V.Kumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110124/028f73ba/attachment.html>
More information about the Python-list
mailing list