---
title: "Discussion on \"Learning Journal Node.js: writing to files\" | Hashnode"
description: "Discussion on \"Learning Journal Node.js: writing to files\". One of the ways to output in Node.js is to write directly to files in the local file system. One method that Node.js provides is fs.writeFileSync. This is a blocking method that appears to write string data to a given file, using the file name as a r..."
url: "https://hashnode.com/posts/learning-journal-nodejs-writing-to-files/64188a3e60bf225dbe804a21"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Learning Journal Node.js: writing to files](https://blog.thescrappy.dev/learning-journal-nodejs-writing-to-files?utm_source=hashnode&utm_medium=feed)

One of the ways to output in Node.js is to write directly to files in the local file system. One method that Node.js provides is fs.writeFileSync. This is a blocking method that appears to write string data to a given file, using the file name as a r...

Mar 20, 2023 · 2 min read · blog.thescrappy.dev  
Read the article

-   [#learning](https://hashnode.com/tag/learning)
-   [#learning-journey](https://hashnode.com/tag/learning-journey)
-   [#learning-in-public](https://hashnode.com/tag/learning-in-public)

## Written by

[Nathan Guenther](https://hashnode.com/@TheScrappyDev)

@TheScrappyDev

  
[View profile](https://hashnode.com/@TheScrappyDev)

Frontend engineer with a passion for mobile and UX

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
