Added setFile(name) for reading input