[Tutor] Open file error

Kent Johnson kent37 at tds.net
Thu Jan 19 11:56:53 CET 2006

andy senoaji wrote:
> Thanks Danny & Alan,
> your print repr(os.listdir("C:/")) has embarrased myself :(. I found out 
> the file name is Test.txt.txt in my c: drive. I guess I learn something 
> here.

If you tell Windows not to hide file extensions you won't make that 
mistake again. On my computer (Win2k) it is under Tools / Folder Options 
/ View / Hide file extensions for known file types.


More information about the Tutor mailing list