Shorten MainWindow::createFile()