Hi,
I'm trying to make a start in Python programming. I consider myself competant with Perl, and I want to do some of the same things which are easy in Perl, in Python.
In particular, I want to be open a file and process each line at a time.
In Perl I just do:
while (<>) {
doSomethingWith ($_);
}
I've had a browse around python.org, but can't find any good references to opening and processing files.
Can anyone tell me how to do the above Perl code in Python? I really would appreciate it, thanks.