Hi Rick,
From what I understand, you need help on writing data to a file.
What you can do is put all the data you want in a variable, then write it to a file as shown by the top answer on this Stack Overflow question.
Instead of passing the "Hey there!" string as the second argument, pass your the data you want written to the file you specify as the first argument.
-Shakeel
... View more