[Tutor] creating and writing to a text file
dn
PyTutor at DancesWithMice.info
Mon Mar 29 04:20:22 EDT 2021
On 29/03/2021 18.05, Phil wrote:
> On 29/3/21 3:03 pm, Cameron Simpson wrote:
>> I think you've embedded a DEL character in your programme and just can't
>> see it. Does your editor really show nothing odd in the 'test.txt' open
>> call()?
>
> Thank you Cameron,
>
> I'm using IDLE and I cannot see anything odd anywhere. Anyway, I have
> solved the problem by starting afresh. I have three other IDEs, I'll see
> if they show any odd characters.
No need for that, keep things simple: delete everything including the
apostrophes, then re-type that part of the line, ensuring every
keystroke is correct and just for laughs, use double-quotes to surround
the file-name.
--
Regards,
=dn
More information about the Tutor
mailing list