I am writing a Delphi 1 shell for a 16-bit dos grep.
How do I, without calling a dos batch file, use delphi code to redirect the output of a call to a dos command to a file?
An equivalent dos command line would be
'grep -flc foo bar.txt > baz.txt'
It is the '> baz.txt' portion for which I seek an answer.