command line - Print script content (Python) -


using python 2.7 on windows 8.1,

i have python script (stuff.py)

i want open command line , type command going print content of script, in text format.

what options?

in typical *nix system, printing contents of file be

cat stuff.py 

and edited critierion, windows 8:

type stuff.py 

or if question restricted python, can write script similar:

with open("stuff.py", "r") f:     print "\n".join(f.readlines()) 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -