// This method repeatedly prompts user to enter a filename until user enters a valid filename.
// Once a valid filename is entered, this method returns a Scanner object created from the file.
// The parameter msg is used to construct the propmpt message by: "Enter " + msg + "filename: ".
// So if msg contains the string student list, then the prompt message would be: ?Enter student list filename: