Reading and Writing Files with Node.js | Node JS Beginners Tutorial

Reading and Writing Files with Node.js | Node JS Beginners Tutorial

Dave Gray

2 года назад

61,136 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@devynity4507
@devynity4507 - 19.12.2023 21:59

Hey, thanks for this! i am really insterested about how things work in a full developed web application, this thing really helped me!

Ответить
@SumitGupta-ys7lb
@SumitGupta-ys7lb - 19.11.2023 18:09

You saved my life!🎉

Ответить
@codewithkin
@codewithkin - 29.09.2023 18:34

This course is so underrated, thanks for this Dave!

Ответить
@kostiantynkarzhanov9216
@kostiantynkarzhanov9216 - 26.09.2023 00:31

The best channel ever! Thank you for the awesome tutorial! 💛

Ответить
@dj_chateau
@dj_chateau - 20.08.2023 02:51

Oddly, I followed your code to the letter and the console.log() ends up writing to the console that the writing was complete before it read from the file and I can't ascertain what is different or why this happens.

Ответить
@MueezKhan1
@MueezKhan1 - 18.07.2023 06:31

Thank you!

Ответить
@bhargavs5180
@bhargavs5180 - 17.07.2023 21:08

Loved the tutorial, it'd be nice if you could show us how to stream huge data from backend to frontend in a mern app.

Ответить
@alientec258
@alientec258 - 16.05.2023 14:28

Is that also possible with a button

Ответить
@madhu8934
@madhu8934 - 06.05.2023 12:38

Hi Dave Grey, i want to read JSON file and keep updating the multiple keys in a JSON file. Can you please help how to achieve that

Ответить
@TinyMaths
@TinyMaths - 01.05.2023 17:01

Thanks for the explanation about why it's better to have the use appened file inside the write file function. I've seen it done before but didn't know why it might be useful. I didn't realize append file was capable of writing a new file also; so now it makes sense to have it operate 'after' write file.

Ответить
@yamillayicov7256
@yamillayicov7256 - 24.03.2023 16:22

Thank you Dave Gray you're the best

Ответить
@loikvokhidov7688
@loikvokhidov7688 - 17.02.2023 05:45

I am loving this series 👍

Ответить
@codie12
@codie12 - 06.02.2023 11:10

I love your content so much! Looking forward to new Nodejs tutorial videos. Love from Vietnam <3

Ответить
@Idiomeme_com
@Idiomeme_com - 04.02.2023 17:00

Very nice, thank you. At the end with an if-else would be enough? Thank you

Ответить
@dorian7215
@dorian7215 - 21.01.2023 20:49

This content is by far the best. Thank you for this labor of love. It's going to change my life.

Ответить
@daddyknowsbest8832
@daddyknowsbest8832 - 16.01.2023 19:59

Awesome video Dave! Your video helped me.

Ответить
@sayedashraf9241
@sayedashraf9241 - 12.12.2022 21:22

callback functions, error handling, async await

Ответить
@jamshidtashkent1976
@jamshidtashkent1976 - 08.12.2022 06:16

Hello. Many thanx for such a wonderful video.
Could you explain, please, this data[, options]. Why is comma insight [ ] ? what does this mean ?

Ответить
@hydrohelp9847
@hydrohelp9847 - 03.12.2022 21:36

Best of the best of the best. Thanks you

Ответить
@sergiorey2049
@sergiorey2049 - 25.11.2022 18:16

Really really nice!

Ответить
@mohammednoor1330
@mohammednoor1330 - 04.10.2022 09:03

hey dave i have a issue with createreadstream it works perfectly iam using csv file for reading but 10 out of 1 time my readstream doesnot read my file i dont know why can u please with me with this it would be really greatful

Ответить
@uncleiroh3616
@uncleiroh3616 - 26.09.2022 22:05

Great video, mate. Though fs.promises could have been explained a bit better, cuz I still don't know what it does exactly :/

Ответить
@nameunknown6522
@nameunknown6522 - 24.08.2022 14:13

existsSync function is behaving different in my code. Even if you write same code, for the first time it only creates new directory and if you run it again it removes the directory. What's reason behind this strange behavior??

Ответить
@codingispower1816
@codingispower1816 - 23.08.2022 17:50

What's the difference between writeFile and createWriteStream?

Ответить
@ericka.robles6538
@ericka.robles6538 - 03.08.2022 11:24

Kind Regards!!

Ответить
@ericka.robles6538
@ericka.robles6538 - 03.08.2022 09:55

Yoy Save Mi Life with this video!!

Ответить
@RamanKumar-fv5ub
@RamanKumar-fv5ub - 20.07.2022 05:50

Just want to say, GREAT TUTORIAL!!!!, Thank you

Ответить
@balazskovacs4955
@balazskovacs4955 - 16.07.2022 02:42

Great video Dave, can you advise how can i append content to a specific line? I want to read the content of HTML file (which works), then identify a specific line that contains <title></title> then add user input value from a form, and append another 5 lines of specific content after the title line.

Ответить
@abdelmonem88
@abdelmonem88 - 25.06.2022 02:53

thanks so much for this helpful tutorial

Ответить
@sonamohialdin3376
@sonamohialdin3376 - 23.06.2022 15:16

Amazing tutorial thank you

Ответить
@arturotrejo5923
@arturotrejo5923 - 23.06.2022 03:20

I applied this tutorial to read a JSon file and it worked well! Thank you Dave, you really made this task simple and easy to understand!

Ответить
@chotabomjvonychi3485
@chotabomjvonychi3485 - 01.06.2022 11:02

It's refreshing to see a tutorial where someone mentions documentation they are using. Most of the times it's "let's put this absolutely cryptic line of code here because I said so".

Ответить
@samdavepollard
@samdavepollard - 23.05.2022 13:17

Super useful.
8 minutes in and you've answered every question I had right now.
(JS noob who installed node for the first time this morning as an alternative to doing everything in dev tools. Been wondering for a while if i could read/write files. Kind of crazy how thrilling it is to be sitting here looking at a list of 20 freshly minted random numbers in a simple ol' text file your tutorial taught me how to create.)
Many Thanks, once again, for sharing your knowledge.
Will be checking out your full node tutorial for sure.

Ответить
@saraaitali6551
@saraaitali6551 - 06.05.2022 14:54

heyy, i have poblem filesystem.writefile does not create file
please help

Ответить
@jennyaguilar5083
@jennyaguilar5083 - 15.04.2022 12:06

I loved this tutorial... Thank you Dave!

Ответить
@tf1n
@tf1n - 15.04.2022 01:05

Fantastic vanilla Node tutorial. Concise and practical. Thank you, Dave!

Ответить
@mma-dost
@mma-dost - 12.04.2022 10:27

Great video sir you have explained fs module very clearly and in a very good way. Thanks a lot sir. 🙏🔥😊✅❤️

Ответить
@alirezahekmati7632
@alirezahekmati7632 - 04.04.2022 01:05

🚀

Ответить
@yuliiashmidt6332
@yuliiashmidt6332 - 25.03.2022 05:19

nice tutorial! Thanks Dave

Ответить
@AmitYadav-fn1om
@AmitYadav-fn1om - 14.03.2022 15:40

How to read from postman

Ответить
@bijoy_7168
@bijoy_7168 - 11.03.2022 22:24

it really helped me.😍

Ответить
@thereisnthhere
@thereisnthhere - 07.03.2022 00:16

Thank you Dave
These tutorials are gold

Ответить
@MathiArasucrysis
@MathiArasucrysis - 04.03.2022 21:50

Thanks for your useful content, i have quick question, how to read a docx file source and create a new file in local directory for download.

Ответить
@salehm5413
@salehm5413 - 25.02.2022 23:34

Thinks

Ответить
@aamirbinusman8416
@aamirbinusman8416 - 14.02.2022 00:03

Awesome Explanation.. In an easy to understand manner

Ответить