Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 백준
- 생활코딩 WEB2-JavaScript
- calc()
- border radius
- 노마드 코더
- 코딩테스트
- 나도코딩 파이썬
- :root
- WEB2-JavaScript
- li 태그
- html 끝
- HTML
- git 버전관리
- 백준 정리
- 할만한데?
- 라매개발자
- Pull
- 생활코딩
- 크롬웹
- error: ENOENT: no such file or directory
- 드림코딩
- git
- 나도코딩
- max-width
- box-sizing: border-box
- nav태그
- button:focus cursor: pointer; outline: none;
- 단계별로 풀어보기
- 백준 자바스크립트
- margin 0 auto
Archives
- Today
- Total
목록error: ENOENT: no such file or directory (1)
코딩응애의 개발블로그
자바스크립트 백준 입력받는법 및 error: ENOENT: no such file or directory, open './input.txt' 에러 해결 과정
자바스크립트로 백준 풀려면 입력 받는것 때문에 꽤나 귀찮고 나같은 초보자들은 처음에는 매우 힘들것이다. 백준에서 node.js 를 선택하고 코드 몇줄을 입력을 해야한다. const fs = require('fs'); // 파일을 읽어오기 위해 Node.js의 built-in file system module fs 사용 const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; let input = fs.readFileSync(filePath).toString().split('/n'); // input을 읽어와 변수로 선언 & 할당 그 내용을 input에 저장, toString(), split()을 사용해서 // Array(배..
알고리즘 문제
2022. 1. 3. 15:55