<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
On 04/15/2010 12:39 PM, Vitto wrote:<br>
<br>
<blockquote
cite="mid:h2x268464b81004150339u88151344le7f3978aa33d33@mail.gmail.com"
type="cite">
<div>
<blockquote>f = open(file.txt,w)<br>
for line in f.readlines()<br>
if 'membri' in line:<br>
nuova = line + 'hello world'<br>
#rimuovi line<br>
f.writeline(nuova)<br>
f.close<br>
<br>
E' possibile fare qualcosa del genere mentre si scorre il file?<br>
</blockquote>
</div>
<br>
</blockquote>
<br>
No, devi scrivere un file nuovo.<br>
<br>
<br>
</body>
</html>