node동기2

Home   »   node동기2

const fs = require('fs');

​

console.log('시작');

let data = fs.readFileSync('./readme2.txt');

console.log('1번', data.toString());

data = fs.readFileSync('./readme2.txt');

console.log('2번', data.toString());

data = fs.readFileSync('./readme2.txt');

console.log('3번', data.toString());

console.log('끝');

Leave a Reply

Your email address will not be published. Required fields are marked *