Writting to file from file and printing using python
atanas Cosmas Nkelame
atanasy at gmail.com
Fri Jul 28 02:08:01 EDT 2006
Hi,
I have a task to write a program that will do the following.
1. Run from the command line
2. Get data from a text file (say data.txt) in the following format
111: peter edward peter at yahoo.com
112: John sykes john at yahoo.com
113: edward mutaga edward at yahoo.com
3. Write that data in a prepared word document (which is essentially a
letter)
4. Print the letters for the listed people (111,112,113) on a printer.
The program has to be called like this
c:/program/callprogram inputfile.txt c:/program/data/outputfile.doc
Someone has done this in VB.Net but I would like to do it in python.
Can someone advice on the best way to start.
atanas
atanas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060728/1f8645b0/attachment.html>
More information about the Python-list
mailing list