basicly
$result=`cat $PROG >> $TEXTFILE`;
(use
type instead of
cat> on windows)
will do the same if I understand what you're trying to do, just add a some error checking.
TIMTOWTDI !!!
But to answer your question, I see nothing wrong with your code (except that you're not lazy enough... ;-)
may be some spelling errors (but as a french guy I won't go on this !)
I would suggest, as a general rule, to use variable for numerical constants (the 75) if they're used more than once