Join TSR now and get answers to all your questions about uniSign up now

running a python program + naming a file as input in command prompt

    • Thread Starter

    i need to be able to run a program from command prompt (so i have all my functions in that program) BUT pass the argument to it from a different file like this:

    python file.txt

    so that the function in runs using file.txt as an argument

    how do you do this?
Which party will you be voting for in the General Election 2017?

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Quick reply
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.