
February 18th, 2013, 10:34 PM
|
 |
Contributing User
|
|
|
|
Load the files into microsoft word and click print?
Use the DOS print command?
untested program to concatenate files named on the command line, includes a one line file name separator.
Code:
#use: A:> python thisfile.py a.txt b.txt 3.txt
import sys
for name in sys.argv[1:]:
print('{} {}'.format('*'*20,name))
with open(name) as inf:
sys.stdout.write(inf.read())
__________________
[code] Code tags[/code] are essential for python code!
|