[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

File Name issue

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