From 9258bfdf13580764d0b24b8d5b9bfe915e95cad7 Mon Sep 17 00:00:00 2001 From: Peter Morgan Date: Mon, 23 Dec 2019 16:47:46 -0500 Subject: [PATCH] Removed fileIO.js --- fileIO.js | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 fileIO.js 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'); - } - };