# i = 1

		for row in f:
			# get only the relevant elements
			row_as_list = row.split(',')
			info = [row_as_list[index] for index in column_indices]

			user = info[0]
			start_date = info[1]
			start_time = info[2]


			current_time = "{} {}".format(start_date, start_time)
			sessions.add_session(user, current_time)

			# for debug purposes
			# i+=1
			# print("Processing entry {}".format(i))

		# once finish reading the input, flush remaining sessions
		sessions.terminal_flush()

		# close connection to the output file
		sessions.get_writer().close()

	# for benchmarking
	print("--- %s seconds ---" % (str(time.time() - start_execution)))