Well, search for tutorials on how to read from nvault and search for tutorials on how to write files, then combine the knowledge and voilla !
Try it and if you can't get it to work, post your code and we'll help.
NOTE: This is scripting help section, not requests