On Wed, 01 Oct 2008 07:19:44 -0700, yqyq22 wrote:
> My problem is how to translate this vbs in python:
> 
> Dim fso
> Dim strComputer
> Set fso = CreateObject("Scripting.FileSystemObject") Set ElencoPC =
> fso.OpenTextFile("elencoPC.txt" , 1, False) Do Until
> ElencoPC.AtEndOfStream
> strComputer = ElencoPC.ReadLine
> 
> thanks

try this:

fso = open('elencoPC.txt', 'r')
for line in f:
    strComputer = line


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to