YoVDO

Reading and Writing Files with Node.js - Node JS Beginners Tutorial

Offered By: Dave Gray via YouTube

Tags

Node.Js Courses Asynchronous Programming Courses Promises Courses

Course Description

Overview

Learn to read, write, update, and delete files using Node.js in this comprehensive 28-minute tutorial for beginners. Explore the Node.js file system module, create readable and writable data streams, and understand how to handle large files efficiently. Master essential file operations, including creating and removing directories, checking file existence, and implementing async/await patterns to avoid callback hell. Gain practical knowledge on using the Path module and handling uncaught errors while working with the Node.js file system.

Syllabus

Intro
Welcome
Overview
Use the NodeJS docs
How to read a file with Node.js
How to handle uncaught errors
Async example
Path module
How to write to a file with Node.js
How to update a file with Node.js
Nested operations
Callback hell
fsPromises
Replace Callback hell with Async Await
How to delete a file with Node.js
Readstream for large files
Stream data listener
Piping data streams
How to create a directory with Node.js
How to check if a file or directory exists
How to remove a directory with Node.js


Taught by

Dave Gray

Related Courses

JavaScript Promises
Google via Udacity
ES6 - JavaScript Improved
Udacity
Back-end Application Development with Node.js and Express
IBM via edX
The Modern JavaScript Bootcamp
Udemy
NodeJS Unleashed: From Basics to Brilliance
Udemy