[EMAIL PROTECTED] wrote:
> What is wrong with this script?
>
> #!/usr/bin/python
> fsfile = open('/tmp/fs_info.al', 'r')
> for line in fsfiles.readlines():
> print line
> fsfile.close()
>
>
>   
Did you cut and paste that code?  I see a couple typos

First, on the line

for line in fsfiles.readlines():

There's an extra s in fsfile

Secondly, the line:

print line

should have an indentation to denote that its the block of code that the 
for loop will execute on.

.c



-- 

Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software

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

Reply via email to