```
if boolErrorsOnly :
    mfile = "NewPayrollExports\Admin_ErrorsOnly_" + m0weekbeg + "_" + m0weekend + ".csv"
else:
    mfile = "NewPayrollExports\\Admin_" + m0weekbeg + "_" + m0weekend+".csv"

#Copy the field list to csv file
with open(mfile,'r+', newline='') as mhvupload_csv:
    writer = csv.writer(mhvupload_csv)
    writer.writerow(strFieldList)

```

I'm trying to write to a csv file but I get this error in the with line. I have this:

```
FileNotFoundError: [Errno 2] No such file or directory: 'NewPayrollExports\\Admin_ErrorsOnly_20200501_20200515.csv'

```