'Use in-memory buffer as a file

During my program's execution I get a buffer that I need to additionally feed into an external program and read it's output. Unfortunately, this program only accepts filenames as input and output, so I'd have to save this buffer to a disk first, but I'd like not to create temp files on the filesystem, if that's possible.

Is there any way to do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source