"Christopher Spears" <[EMAIL PROTECTED]> wrote
>I have written a script that reads and displays text
> files:
> while True:
>if os.path.exists(fname):
>fobj = open(fname, 'r')
>for eachLine in fobj:
>print eachLine,
>fobj.close()
> However, whenever
Christopher Spears wrote:
> I have written a script that reads and displays text
> files:
>
> #!/usr/bin/env python
>
> 'readTextFile.py -- read and display text file'
>
> import os
>
> # get filename
> while True:
> fname = raw_input('Enter file name: ')
> print
> if os.path.exists
I have written a script that reads and displays text
files:
#!/usr/bin/env python
'readTextFile.py -- read and display text file'
import os
# get filename
while True:
fname = raw_input('Enter file name: ')
print
if os.path.exists(fname):
fobj = open(fname, 'r')
for e