I am parsing through a textfile and extracting the information I need into a prettytable. However, I am unable to write the table out as one table it outputs as a single table for each item.
My code for outputting the table:
f = open("out2.txt", "w")
for item in table:
f.write("%s\n" % item)
f.write("There are %(count)d errors found" %{"count": count})
And my output looks like:
How can i write out the table so that it is one consecutive table?