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
Post a Comment