⚠️ This lesson is retired and might contain outdated information.

Save/Open a file with an Electron dialog window

Cameron Nokes
InstructorCameron Nokes
Share this video with your friends

Social Share Links

Send Tweet
Published 8 years ago
Updated 2 years ago

In this video, we'll learn how to save and open a file using native dialogs in Electron. First, we'll use dialog.showSaveDialog to display a native save dialog and use dialog.showErrorBox to display an error message if the save failed. Then, we'll open the file we saved using dialog.showOpenDialog. Finally, we'll look at how these dialogs look on Windows vs Mac.