can python do this?

gangli at msn.com gangli at msn.com
Tue Jun 13 10:28:08 EDT 2000


In article <3946dc6b.193651816 at news.online.no>,
  thomas at cintra.no (Thomas Weholt) wrote:
> On Tue, 13 Jun 2000 16:39:23 +1000, "Jason" <it at onestopent.com.au>
> wrote:
>
>
> file = open("c:\\temp\\music.txt")
>
> And YES, the double backslashes are needed, or the \t in \temp is

You can use forwardlashes too, e.g.
file = open('c:/temp/music.txt')


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list