Hello mate.
It seems like a nice script, good job on that one. I'll check it out tomorrow.
Just a tip, you should change the file extension from .data to .txt, as it will be recognizable automatically by all PCs, and it won't cause any conflicts with applications that might use the .data extension.