I have this function.
def write_file(tmpdir, filename):
full_file_name = tmpdir/filename
with openFile(filename) as p:
lines = p.readlines()
return lines
I have pass my filename. For example file.txt ,and there can be written everything. How can I print out all of the lines of the file.txt file in this write_file function?
Generic syntax to print the file lines