C API write k object to disk

https://learninghub.kx.com/forums/topic/c-api-write-k-object-to-disk

I was wondering if its possible for the C API (or Java c interface) to update a file on disk with k objects (similar to how a tickerplant updates the tick log)

Basically want to implement journaling mechanism, if the feed handler drops a message from its queue and the ticker plant never receives the message - replaying the kdb tick log won’t recover the data. (Of course the feed handler could log in plane text, but I’m trying to see if I can avoid reading/parsing a csv file)

From what I can tell the khpun function can only open a handle to a q process, not a file handle like hopen

So, is there an out of the box implementation for c/java API to update a binary file and then a q process read/process the file with -11!

Or so we need to write a custom deserializer to read the binary file?