Re: Using open() inside a subroutine

2005-02-17 Thread imphasing
DUH. Thanks. can't beleive I missed that one... Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: Using open() inside a subroutine

2005-02-17 Thread Grant Edwards
On 2005-02-18, imphasing <[EMAIL PROTECTED]> wrote: > Whenever I try to open a file inside a subroutine, like so: > > def open(): > filePath=askopenfilename() > > fileOpen = open(filePath, "r") > fileContent = fileOpen.read() > fileOpen.close() > > it tells me that "open() t