print the 4 frontier output to txt file