Running a Java Programm with a (korn)shell-script

hey everyone,

For my studies i had to write a javaprogram which reads 2 integers from the keyboard and then using the basic operations(addition, division etc) with them. so far no problem. but now i gotta make a shell-script which:

runs the program(compiled with javac)
#!bin/ksh
java Aufgabe1 > test1.log

so far so good. of course it works if i manually type the numbers. result and everything in the logfile are correct.
but i gotta make an inputfile(.txt) in which there are the 2 integers. so i gotta expand my script, reading the integers from the .txt file and running the program with those.

unhappily i got no clue, how to do that. anyone could help me here, plz?

regards simlmf

If > sends output to a file, what do you think < will do?

BTW: No posting homework here, I'm afraid.