jsadvent/lib/load.js
2020-12-10 02:33:00 -06:00

6 lines
165 B
JavaScript

const fs = require('fs');
const path = require('path');
module.exports = (day) =>
fs.readFileSync(path.resolve(__dirname, `../data/${day}.txt`)).toString();