Writing a file to the file system



I am looking for the simplest way to write a static file (included with a plugin) onto the file system. My first instinct was to look in the vfs plugins, but couldn’t find what I was looking for. Any tips would be really appreciated!

Thanks a lot!