def openFile(Filename):
	f = open(Filename,"r")
	print "Opening log file...:" + Filename
	log = []
	noOfLines = 0
	for line in f:
		#if noOfLines == 10000:
		#	continue
		#else:
		if "root" and "INFO" and "Visiting" in line:
			continue
		elif "mechanize" and "INFO" and "JS retrieve" in line:
			continue
		else:
			line = re.sub('(^\d*-\d*-\d*\s\d*:\d*:\d*,\s\w*,\s\w*,\s,\s)','',line)
			log.append(line)
		#		noOfLines = noOfLines + 1
	print "Log file opened."
	f.close()
	return log
dataset/ETHPy150Open Masood-M/yalih/scripts/comparelog.py/openFile/original