Node.js

Node.js - 파일 읽기

수업소개

Node.js에서 파일을 읽는 방법을 알려드립니다. 

 

 

 

강의

 

 

 

소스코드

readfile.js

var fs = require('fs');
fs.readFile('sample.txt', 'utf8', function(err, data){
  console.log(data);
});

 

댓글

댓글 본문