79632169

Date: 2025-05-21 14:13:24
Score: 0.5
Natty:
Report link

check for the 'index.js' location then set how many parents directory they differ with '\txt\test.txt' and join with relative directory '__dirname':

const fs = require('fs');
const path = require('path');
const archivo = fs.readFileSync(path.join(__dirname, '../txt/test.txt'));
console.log(archivo);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: msbeigi