Use appropriate ifstream constructor.