#!/usr/bin/python

def main():

	# To read a file line by line
	for line in open("file.txt","r").readlines():
		print line

	# To read the whole file at once
	print open("file.txt","r").read()

if __name__ == "__main__":
	main()

