[Tutor] Read a file text and write on another one !

Steve Spicklemire steve@spvi.com
Thu, 18 May 2000 07:17:18 -0500 (EST)


Ack.. I somehow got cmp1st in there twice! Programming
in email is never easy. ;-) Also.. I should point
out that string.split() returns a list of *strings*.
If you want to interpret the values as numbers, you'll
need to enforce that coersion manually... 

e.g., 


list=[]
for line in lines:
	list.apened(string.split.. etc...)
	list[-1][0] = string.atoi(list[-1][0])  # convert the 
						# first item in the 
						# last added list to int...


-steve