complete input from file