generating data (only needs to be written to file)
Takes all txt files as input