Wrote the text files, starting the main program operation.