If that works for you, it can be changed to write direct to text file.