We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs.writeFile(fname,text); 부분에서 오류가 나길래 공식 문서를 찾아보니
fs.writeFile(file, data[, options], callback) https://nodejs.org/dist/latest-v10.x/docs/api/fs.html#fs_fs_writefile_file_data_options_callback
함수의 인자로 3개를 받고 마지막에 콜백함수를 받는다고 합니다.
예제코드를 아래와 같이 바꾸니 해결됬습니다. fs.writeFile(fname, text,(err)=>{ if (err) throw err; });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
fs.writeFile(fname,text); 부분에서 오류가 나길래 공식 문서를 찾아보니
fs.writeFile(file, data[, options], callback)
https://nodejs.org/dist/latest-v10.x/docs/api/fs.html#fs_fs_writefile_file_data_options_callback
함수의 인자로 3개를 받고 마지막에 콜백함수를 받는다고 합니다.
예제코드를 아래와 같이 바꾸니 해결됬습니다.
fs.writeFile(fname, text,(err)=>{
if (err) throw err;
});
The text was updated successfully, but these errors were encountered: