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
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to