Working with files

The ability to read and manipulate the filesystem is fundamental to server-side programming.

Node's fs module provides this ability.

In this recipe, we'll learn how to read, write, and append to files in a synchronous manner. In the There's more... section, we'll explore how to perform the same operations asynchronously and incrementally.