I have certain application that opens a file with given path (presumably with fopen
or derivative), reads the file, possibly writes to it and closes it. I have no control over this application other than specifying the path.
What I am trying to do is 'emulate' a file within the local filesystem to pass it to the application. That is, I want the file to appear as an ordinary file in the filesystem, however the streams are redirected to another application that handles them correctly and outputs appropriate data. Essentially, I want to create a pseudo-device, except that it is not a device at all. Is this doable at all? How would I approach this problem?