venture of iit bombay vjti alumni example #!/usr/bin/python open file fo open("foo txt""wb"print "name of the file"fo name close opend file fo close(this produces the following result name of the filefoo txt reading and writing files the file object provides set of access methods to make our lives easier we would see how to use read(and write(methods to read and write files