[Tutor] Re: Filtering text files
Garry Knight
garryknight at gmx.net
Wed Apr 14 19:54:20 EDT 2004
In message <407DBB18.60803 at po-box.mcgill.ca>, Brian van den Broek wrote:
> Kooser, Ara S said unto the world upon 14/04/2004 17:28:
>
>> def filterFile(lmps, newFile):
>> f1 = open(lmps, "r")
>> f2 = open(newFile, "w")
>
> filterFile(firstfile.txt, secondfile.txt)
Since the open() call takes a string as the first parameter, filterFile
should be called with two string arguments:
filterFile("firstfile.txt", "secondfile.txt")
--
Garry Knight
garryknight at gmx.net ICQ 126351135
Linux registered user 182025
More information about the Tutor
mailing list