Skip to content
geeksforgeeks
  • 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
  • Python
  • C
  • C++
  • Java
  • Courses
  • Machine Learning
  • DevOps
  • Web Development
  • System Design
  • Aptitude
  • Projects
Similar Topics
Web Technologies
39.7k+ articles
JavaScript
11.6k+ 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
Node.js fs.createWriteStream() Method
Last Updated: 07 January 2025
The fs.createWriteStream() method in Node.js is used to create a writable stream for writing data to a file. This method is part of the fs ( ...read more
Web Technologies
Node.js
Node.js-fs-module
Node fs.appendFile() Function
Last Updated: 11 April 2025
The fs.appendFile() method in Node.js is used to add data to the end of a file without deleting its existing content. It works asynchronousl ...read more
Web Technologies
JavaScript
Node.js
Node.js-fs-module
Node fs.copyFile() Function
Last Updated: 10 April 2025
The fs.copyFile() method in Node.js is used to copy a file from a source path to a destination path. By default, Node.js will overwrite the ...read more
Web Technologies
JavaScript
Node.js
Node.js-fs-module
Similar Topics
Web Technologies
39.7k+ articles
JavaScript
11.6k+ 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 fs.unlink() Method
Last Updated: 07 January 2025
`fs.unlink()` in Node.js removes files or symbolic links, while for directories, it's advisable to use `fs.rmdir()` since it doesn't support ...read more
Web Technologies
Java-NavigableMap
Node.js
TCS-coding-questions
Node.js-fs-module
Node.js fs.readdir() Method
Last Updated: 07 April 2025
The fs.readdir() method is used to asynchronously read the contents of a given directory. The callback of this method returns an array of al ...read more
Web Technologies
Picked
Node.js
Node.js-fs-module
Node.js fs.writeFileSync() Method
Last Updated: 07 April 2025
The fs.writeFileSync() method is a synchronous method. It creates a new file if the specified file does not exist. Also, the 'readline-sync'...read more
image
Web Technologies
Node.js
Node.js-fs-module
Node JS fs.readFileSync() Method
Last Updated: 21 April 2025
In NodeJS, the fs.readFileSync() method is used to read files from the filesystem in a synchronous manner. This means that when you use this ...read more
Web Technologies
Picked
Node.js
Node.js-fs-module
Node.js fs.readdirSync() Method
Last Updated: 15 April 2025
The fs.readdirSync() method is used to synchronously read the contents of a given directory. The method returns an array with all the file n ...read more
Web Technologies
Picked
Node.js
Node.js-fs-module
Node JS fs.writeFile() Method
Last Updated: 03 April 2025
​In Node.js, the fs.writeFile() method is a built-in function used to asynchronously write data to a file. This method allows you to creat...read more
image
Web Technologies
Picked
Node.js
Node.js-fs-module
Node.js fs.createReadStream() Method
Last Updated: 14 April 2025
The fs.createReadStream() method in Node.js is used to create a readable stream to read data from a file. This method is part of the fs (fil ...read more
Web Technologies
Picked
Node.js
Node.js-fs-module
Node fs.open() Method
Last Updated: 19 March 2025
To create the file, to write to a file, or to read a file fs.open() method is used. fs.readFile() is only for reading the file and similarly ...read more
Technical Scripter
Web Technologies
Picked
Node.js
Technical Scripter 2019
Node.js-fs-module
Node.js fs.stat() Method
Last Updated: 22 March 2025
The fs.stat() method is used to return information about the given file or directory. It returns an fs.Stat object which has several propert...read more
image
Web Technologies
Picked
Node.js
Node.js-fs-module
Node fs.mkdir() Method
Last Updated: 07 January 2025
Thefs.mkdir() methodin Node.js is used to create a directory asynchronously.Syntaxfs.mkdir(path, mode, callback)Parameters: This method acce...read more
image
QA - Placement Quizzes-Data Interpretation
Web Technologies
Picked
Node.js
TCS-coding-questions
Node.js-fs-module
Node fs.existsSync() Method
Last Updated: 10 April 2025
In Node.js, the fs.existsSync() method checks if a file or folder exists at a given path. It's synchronous, meaning it pauses the program un ...read more
Web Technologies
Node.js
Node.js-fs-module
Node JS fs.readFile() Method
Last Updated: 03 April 2025
​In Node.js, the fs.readFile() method is a fundamental tool for reading files asynchronously, allowing your application to remain responsi...read more
image
Technical Scripter
Web Technologies
Picked
Node.js
Technical Scripter 2019
Node.js-fs-module
1 2 3 4 5 6 7 8 >>
Last
1 2 3 4 5 6 >>
Last
1 2 3 4 >>
Last
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
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
Lightbox