benjymous wrote: You could just redirect the input from a text file rather than from the keyboard Assuming that the program is reading from standard input, you'd have: myprog.exe < file.dat
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow