Skip to content

Instantly share code, notes, and snippets.

Created Jun 9, 2021
What would you like to do?
const fs = require('fs');
const path = require('path');
fs.writeFile('content.txt', 'This is my first file!', (err) => {
if (err) {
throw err;
process.stdout.write('File created successfully!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment