File Name issue

Mladen Gogala mgogala at yahoo.com
Sat Oct 17 18:51:11 EDT 2020


On Sat, 17 Oct 2020 18:12:16 -0400, Steve wrote:

> with open("HOURLYLOG.txt", 'r') as infile:
> works but, when I rename the file, the line:
> with open("HOURLY-LOG.txt", 'r') as infile:
> does not.  The complaint is: Cannot Assign to operator

Try this:

with open("HOURLY\-LOG.txt", 'r') as infile:


-- 
Mladen Gogala
Database Consultant
http://mgogala.byethost5.com


More information about the Python-list mailing list