[Tutor] file(), open()

2007-05-26 Thread Alan Gilfoy
I want to work with simple ASCII text files, here.. I know you get them loaded into Python with file() or open() The arguments for file() and open() are: (filename, mode, buffering). How do you refer to the filename? Do you put it in quotes? Do you put in the file's full directory path? Or do f

Re: [Tutor] file(), open()

2007-05-26 Thread Rikard Bosnjakovic
On 5/26/07, Alan Gilfoy <[EMAIL PROTECTED]> wrote: > How do you refer to the filename? Do you put it in quotes? Yes. open("foo") > Do you put > in the file's full directory path? Or do file() and open() refer to > the same directory as the one the script is in? Yes, and yes. If you dont supply

Re: [Tutor] file(), open()

2007-05-26 Thread Alan Gauld
"Alan Gilfoy" <[EMAIL PROTECTED]> wrote in >I want to work with simple ASCII text files, here.. You may find it worth reading the relevant section in one of the tutorials. The official python one is good or you could try the Handling files topic in mine. Most tutorials will answer all of the ques

[Tutor] monitor other running applications with Python?

2007-05-26 Thread Che M
Hi, searched a bit for this but haven't found much. Is it possible to use Python to monitor the use of other applications? (anything...Word, Excel, browsers, etc.) At minimum, I wan't to know that the application was running, but even better would be some sense of the use or content, such as