Home
Python Tutorial
Introduction
Data Type
Statement
Operator
String
Tuple
List
Dictionary
Collections
Function
Class
File
Buildin Function
Buildin Module
Database
Regular Expressions
Thread
Tkinker
wxPython
XML
Network
CGI Web
Windows
How to Open a File: handle = open(file_name, access_mode = 'r') : Member in « File « Python Tutorial
Python Tutorial
File
Member in
filename =
'file.txt'
fobj = open(filename,
'r'
)
for
eachLine in fobj: print eachLine, fobj.close()
12.8.Member in
12.8.1.
How to Open a File: handle = open(file_name, access_mode = 'r')