BuildBot

Node Essentials

Files & paths

Lesson 3 of 5

Read and write with the fs module, and build paths that survive any operating system.

What you'll learn

  • Read and write files with the promise-based fs API
  • Build cross-platform paths with path.join
  • Model a file store as a name-to-contents map
Members only

A free account unlocks this lesson and every other one.

Runnable challenges, knowledge checks, and progress that syncs across your devices. No card needed.

Not sure yet? Try the free lesson first: Modules: ESM vs CommonJS