[BangPypers] Doubt regarding python file management

Harish S harishisnow at gmail.com
Tue Jan 18 13:14:28 CET 2011


On Tue, Jan 18, 2011 at 5:39 PM, Harish S <harishisnow at gmail.com> wrote:

>
> Hello,
>   I am new to python. I have a doubt.
>   How will I open a file which is placed in a different directory (other
> than the current working directory)?
>   Wen I try to open the file using the command "file =
> open("d:\desktop\....")", it says :
>
>   IOError: [Errno 22] invalid mode <'r'> or filename: '......'
>
> Can you please specify the reason for this?
>
> Regards,
> Harish
>


More information about the BangPypers mailing list