Writing to a file using FileIOadapter

I have customized error messages which I want to redirect to a file. How do I use the FileWrite configured operation to do the same

Moderator’s Note: This conversation has been moved from its original location to Enterprise Server > Development

Embed your error msg in a document, and publish it to an IC on your IO Adapter that calls your FileWrite.