readerThread saves output to txt