This is what I have"
#!/bin/bash
MAX=3
for((ctr = 0;ctr < MAX; ++ctr))
do
./make.o > out$ctr.txt
output$ctr.txt
done
so I want to take put the output of make.o into out$ctr.txt and in my make.o I call cin, could I take output$ctr.txt as input? I would rather not use input redirection since I would have to rewrite the program.
EDIT: I do not want to use < because then it will give me the contents of the file output$ctr.txt, I do want the actual name of the file not the contents