(infile, outfile, line)
Slower way to prepend the line by re-creating the inputfile.
Slower way to prepend the line by re-creating the inputfile.
Slower way to prepend the line by re - creating the inputfile .
def prepend_slow(infile, outfile, line):
	"""
	Slower way to prepend the line by re-creating the inputfile.
	"""
	with open(infile, 'r') as fin:
		with open(outfile, 'w') as fout:
			fout.write(line + "\n")
			for line in fin:
				fout.write(line)
def prepend_slow ( infile , outfile , line ) : with open ( infile , 'r' ) as fin : with open ( outfile , 'w' ) as fout : fout . write ( line + "\n" ) for line in fin : fout . write ( line )