Support for reading input from file