I am trying to add functionality to my Electron app that will allow users to open a file in the app, specifically plain text files. After looking at the Electron documentati
const {dialog} = require('electron').remote; document.querySelector('#selectBtn').addEventListener('click', function (event) { dialog.showOpenDialog({ properties: ['openFile', 'multiSelections'] }, function (files) { if (files !== undefined) { // handle files } }); });