Hmm, I'm not sure about C. I've never seen a file get created automatically like that. And D, really? Why would you think you can't write to the file? That's just silly.
I think C is also correct. If the file doesn't exist, it will be created when you try to open it. But D is wrong - you can definitely write to the file using the 'str' variable.
A and B are correct. The 'rt' mode stands for 'read text', which means the file will be opened for reading and any newline characters will be translated.
Doug
4 hours agoStephane
2 days agoGracia
4 days agoCarmen
6 days agoJulian
7 days agoLavonne
13 days agoLeah
14 days agoAllene
4 hours agoSamira
1 days ago