diff --git a/fileIO.js b/fileIO.js deleted file mode 100644 index 85a9668..0000000 --- a/fileIO.js +++ /dev/null @@ -1,32 +0,0 @@ - -/** Used to read and write files from disk */ -const fs = require('fs'); - -module.exports = - { - writeJSONToFile: function(fileName, jsonObject) - { - const json = JSON.stringify(jsonObject, null, 4); - fs.writeFile(fileName, json, 'utf8', function() - { - console.log("Wrote to " + fileName); - }); - }, - - - /** - * - * @param fileName - * @returns {any} - */ - getFileAsJSON: function(fileName) - { - return JSON.parse(module.exports.getFile(fileName)); - }, - - - getFile: function(filename) - { - return fs.readFileSync(filename, 'utf8'); - } - };