So I need to programmatically write a file to my Application's Documents directory on my iPhone. I can't use libimobiledevice for license restrictions. iphonedisk is no longer maintained and as far as I gather you can't actually access the Application data anyway.
So I think I need to use the MobileDevice framework directly.
http://theiphonewiki.com/wiki/index.php?title=MobileDevice_Library
Does anybody know how to do this?