As part of the IAF distribution Apama includes the FileTransport transport layer plug-in, implemented in the samples\iaf_plugin\c\simple\FileTransport.c source file.
The FileTransport plug-in can read and write messages from and to a text file, and it is recommended that developers examine this sample to see what a typical transport plug-in implementation looks like.