I have a program that normally takes a file name as input for a file to read from but instead, for scripting purposes , I want to pass the file contents as a parameter. I cannot re write the program to read the text from command line. Is there a way to pass the contents as text via command line? The file is a binary file.
Ex: prog file.txt -p 0