Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
Web Technologies
38.9k+ articles
JavaScript
11.7k+ articles
Node.js
3.4k+ articles
Web technologies
610+ articles
NodeJS-Questions
430+ articles
Node.js-Methods
390+ articles
Node.js-Misc
230+ articles
TCS-coding-questions
110+ articles
QA - Placement Quizzes-Data Interpretation
61 articles
Java-NavigableMap
19 articles
Node.js-fs-module
170+ posts
Popular Articles
Recent Articles
Node.js fs.watch() Method
Last Updated: 29 July 2020
The fs.watch() method is an inbuilt application programming interface of fs module which is used to continuously watch for changes in the gi
...read more
Web Technologies
Picked
Node.js
Node.js-Methods
Node.js-fs-module
Node.js fsPromises.readFile() Method
Last Updated: 06 April 2023
The fsPromises.readFile() method is used to read the file. This method read the entire file into the buffer. To load the fs module, we use r
...read more
Web Technologies
Node.js
Node.js-fs-module
Node.js fs.promise.readdir() Method
Last Updated: 06 April 2023
The fs.promise.readdir() method defined in the File System module of Node.js. The file System module is basically to interact with the hard
...read more
Web Technologies
Node.js
Node.js-fs-module
Similar Topics
Web Technologies
38.9k+ articles
JavaScript
11.7k+ articles
Node.js
3.4k+ articles
Web technologies
610+ articles
NodeJS-Questions
430+ articles
Node.js-Methods
390+ articles
Node.js-Misc
230+ articles
TCS-coding-questions
110+ articles
QA - Placement Quizzes-Data Interpretation
61+ articles
Java-NavigableMap
19+ articles
Node.js File System
Last Updated: 08 January 2025
The fs (File System) module in Node.js provides an API for interacting with the file system. It allows you to perform operations such as rea
...read more
Web Technologies
Picked
Node.js
Node.js-fs-module
Node.js | fs.appendFileSync() Function
Last Updated: 25 April 2025
The fs.appendFileSync() method is used to synchronously append the given data to a file. A new file is created if it does not exist. The opt
...read more
Web Technologies
Node.js
Node.js-fs-module
Node.js fs.access() Method
Last Updated: 25 April 2025
The fs.access() method is used to test the permissions of a given file or directory. The permissions to be checked can be specified as a par
...read more
Web Technologies
Node.js
Node.js-fs-module
Node.js fs.copyFileSync() Function
Last Updated: 25 April 2025
The fs.copyFileSync() method is used to synchronously copy a file from the source path to destination path. Node.js will overwrite the file
...read more
Web Technologies
Node.js
Node.js-fs-module
Node.js fs.close() Method
Last Updated: 08 October 2021
The fs.close() method is used to asynchronously close the given file descriptor thereby clearing the file that is associated with it. This w
...read more
Web Technologies
Node.js
Node.js-fs-module
Node.js fs.unlinkSync() Method
Last Updated: 08 January 2025
The fs.unlinkSync() method is used to synchronously remove a file or symbolic link from the filesystem. This function does not work on direc
...read more
Web Technologies
Picked
Node.js
Node.js-fs-module
Node.js fs.write() Method
Last Updated: 11 October 2021
File-writing is an important aspect of programming. Every programming language has a well-defined file module that can be used to perform fi
...read more
Web Technologies
Picked
Node.js
Node.js-fs-module
Node.js fs.statSync() Method
Last Updated: 08 January 2025
The fs.statSync() method is used to synchronously return information about the given file path. The fs.Stat object returned has several fiel
...read more
Web Technologies
Picked
Node.js
Node.js-fs-module
Node.js fs.mkdirSync() Method
Last Updated: 08 January 2025
The fs.mkdirSync() method is an inbuilt application programming interface of fs module which provides an API for interacting with the file s
...read more
Web Technologies
Picked
Node.js
Node.js-fs-module
Node.js fs.rmdir() Method
Last Updated: 26 September 2024
The fs.rmdir() method is used to delete a directory at the given path. It can also be used recursively to remove nested directories.Syntax:f
...read more
Web Technologies
Picked
Node.js
Node.js-fs-module
Node.js fs.renameSync() Method
Last Updated: 16 October 2024
In Node.js, the fs.renameSync() method is part of the built-in File System (fs) module and is used to rename or move files and directories s
...read more
Web Technologies
Picked
Node.js
Node.js-fs-module
Node.js fs.exists() Method
Last Updated: 17 October 2024
The fs exists method in node is used to check if the input file or the directory exists or not. It is an inbuilt application programming int
...read more
Web Technologies
Picked
Node.js
Node.js-fs-module
First
1
2
3
4
5
6
7
8
>>
Last
First
1
2
3
4
5
6
>>
Last
First
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !