C:\coderoot\python3\level1>python
Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:14:34) [MSC v.1900 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
/windows 10 x64
new to python, but not really new to programming.
going through the beginners docs, I am stuck on the file handling opening:
my code so far:
f = open("C:\coderoot\python3\level1\inputfile.txt", 'r')
for line in file:
for line in f:
print(line.rstripe())
f.close()
I want to try the different methods of opening files and reading them.
and processing the data. from there I will then start with writing to
files.
any idea why that does not work?
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor