Sorry, I depend on text-to-speech software and I can’t read groovy code, so I can’t help you with that specific device handler. But normally, yes, you would just copy the entire file however long it was.
It looks like the following is the community thread on that particular device handler. It appears that you only need to change the preferences if you want to change the reporting Period. But if you have any specific questions about the code, I would ask them in that thread, and someone should be able to help you.