Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fs.readFile('L:/random/test.txt', (err, data) => {
- if (err) {
- console.log(err)
- } else {
- node.files.add({ path: "test.txt", content: Buffer.from(data) }, (err, files) => {
- if (err) {
- console.log(err);
- } else {
- console.log(files)
- }
- })
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement