I don't know of any built in (within the framework) classes to do this, but I imagine it wouldn't be too much of an issue to roll your own..
Obviously it depends on the type of data you want to write to it, and the "security" required..
This article on DevFusion may be a good place to start?