Summary: Create file writeFileSync writeFile For read a file readFileSync readFile = expect call back func append in file appendFileSync Copy file cpSync For delete file unlinkSync For Statics statSync For creating a folder mkdirSync
I am actually getting curious about learning more in Nodejs after watching your tutorials, you explain it in very easy way. Thank you so much , keep up the good work
Wow. Just 3 videos and i am loving node. You explain it so fluently. Had a habit of making notes for help in future but you created permanent notes in my head:) This tutorial is the best‼️
00:04 NodeJS provides file handling capabilities for creating, reading, and interacting with files. 02:38 Understanding synchronous and asynchronous file handling in NodeJS 04:55 Understanding file system in NodeJS and different types of tasks 06:58 File handling in NodeJS involves reading and decoding different types of files. 08:59 File handling in NodeJS involves synchronous and asynchronous operations with file reading and writing. 11:05 NodeJS file handling allows appending, writing and creating log files for monitoring purposes. 13:43 File handling in NodeJS allows creating, copying, and deleting files 16:01 File Handling in NodeJS involves various file operations. 18:07 Understanding file system in NodeJS Crafted by Merlin AI.
A Genuine Thank you, I've been struggling to understand node js and express. up to this video I understood everything and hope express will also be as good as node explanation. But also same thing is happing in react also i hope i can understand react later. Can anyone suggest best react tutorials? (except codewithharry) Again, Thanks Piyush Bhai ❤
87K people watched, but only 1.7K liked ! Hey people, if this course is free, it doesn't mean it's not worthy..this course is much better than many paid ones.
Awesome course better than many paid courses also i have a question which vs code theme are you using? Also can you make a video on your vs code setup key binding and extension you used that will be fun to watch waiting for you reply🙌🏽❤️
Pta nhi mujhe kyun lag raha hai yeh banda mujhe node.js sikha k chodega....😊 After wondering many channels (like code with harry, coderdost) i am on right place.....thanks bhai❤❤❤
hey im preparing for MERN stack. right now i have completed js and react. can you guide me that do this node js serice is beneficial for me as in a queue of javascript-react,node js, express -mongo db
bro, can you please write code in the ES6 way, since I am just start learning , I want to start with the best practice in place. Also can you show everything in class way, how people use them in production. Please talk about socket API as well.. I tried the P2P project, google meet like conferencing tutorial of yours and find it difficult. So, if you kindly talk about the basics, then that would be real help
Don't Worry! We are going to cover each and everything in this playlist and make super easy for you to understand. After this playlist you'll be able to follow P2P as well with ease.
Bro there is a issue when using appendSync function your file appends the given text every time you run your code but in my case I am using same code but my text is appended only once and then remains same even if I run it 5 times Please describe why is it so.
you need to comment out the writeFileSync and readFileSync lines . The reason is everytime the file.js is getting executed the writeFIleSync is deleting the previous demo.txt and creating a new demo.txt with the content passed to it and then it's appending the content of the appendFileSync .
Can some one tell any additional plugins to be installed to get intellisense suggestions. I'm not getting any of suggestions for objects created like fs object. Please suggest
we can almost anything related to file e.g create edit delete these are not available in normal js const fs = require("fs") there are two types of commands for file handling sync and async // sync can return value that we can store in a variable const data = fs.readFileSync("file.txt", "utf8"); console.log(data); // sync requires a try and catch to handle error const fs = require('node:fs'); try { const stats = fs.statSync('/Users/joe/test.txt'); } catch (err) { console.error(err); } // async can't return value so we can't store it in a variable fs.readFile("file.txt", "utf8", (err, data) => { console.log(data); }); // async needs a call back where we can handle error const fs = require('node:fs'); fs.stat('/Users/joe/test.txt', (err, stats) => { if (err) { console.error(err); } // we have access to the file stats in `stats` });
bro i dont know how but when I watch videos form this channel the video is always buffering and when I go a bit forward, it starts working! and it stops again
Bro mereme sare suggestions show nhi hote mujhe pura likhna pdta h fs.writefile pura likhne me even control space se bhi nhi hote....any suggestions kese theek ho skta h
Saw many tutorials but none of them where better than you ... Need to say you are underrated tutor on TH-cam...
100% agree to this .♥
Summary:
Create file
writeFileSync
writeFile
For read a file
readFileSync
readFile = expect call back func
append in file
appendFileSync
Copy file
cpSync
For delete file
unlinkSync
For Statics
statSync
For creating a folder
mkdirSync
You're a really great teacher, I haven't seen such a detailed and clear explanation anywhere. Thanks a bunch!
I am actually getting curious about learning more in Nodejs after watching your tutorials, you explain it in very easy way. Thank you so much , keep up the good work
Literally this is the only playlist to become master of node. Js ❤❤❤wow yrrr what a playlist 🥰🥰😘😘😘
bhiaya aap ne bhot help ki hai meri Har concept me aap se Javascript, react or next padhi thi ab backend start kar rha hu
aap ko dil se thank you❤
Wow. Just 3 videos and i am loving node. You explain it so fluently. Had a habit of making notes for help in future but you created permanent notes in my head:) This tutorial is the best‼️
00:04 NodeJS provides file handling capabilities for creating, reading, and interacting with files.
02:38 Understanding synchronous and asynchronous file handling in NodeJS
04:55 Understanding file system in NodeJS and different types of tasks
06:58 File handling in NodeJS involves reading and decoding different types of files.
08:59 File handling in NodeJS involves synchronous and asynchronous operations with file reading and writing.
11:05 NodeJS file handling allows appending, writing and creating log files for monitoring purposes.
13:43 File handling in NodeJS allows creating, copying, and deleting files
16:01 File Handling in NodeJS involves various file operations.
18:07 Understanding file system in NodeJS
Crafted by Merlin AI.
You realy explained it well. Your way of giving clearification is so good..
amazing teacher, I'm following you to learn NodeJS.
A very big thanks, bro. You're explaining each topic in the finest way.
your turorials are one of the best. please we need best practices and architecture use in node project tutorial.
This is Complete beginner friendly to advance concepts and very deep series. ✅
A Genuine Thank you, I've been struggling to understand node js and express. up to this video I understood everything and hope express will also be as good as node explanation. But also same thing is happing in react also i hope i can understand react later.
Can anyone suggest best react tutorials? (except codewithharry)
Again, Thanks Piyush Bhai ❤
Chai aur code.
Now that i learn File Handling from you. Its time to post a video on my youtube channel to make sure i understand it well enough. Thanks sir.
can you tell which vs code extension he is using for node js
@@saurabhmaurya4199 yes bro I also want to know which extension is it
87K people watched, but only 1.7K liked ! Hey people, if this course is free, it doesn't mean it's not worthy..this course is much better than many paid ones.
Best teacher for WebDev
clean and clear explanation
amazing and detailed Explanation..Thank you for providing in-depth knowledge..Keep posting and keep guiding.
your way of explanation is too good♥♥♥♥👍👍👍👍
your way of teaching is awesome ,i just loved it .
Thanks for the series learned a lot ❤❤
This course is better then pain courses ... Glad i found it..
Thank you so much Bhai for providing this level of content for free ❤
Simple word explanation. 🎉🎊
You explanation is superb bro
sir can you make angular for beginners series your way of teaching is too good
One of the best Node.js playlist🔥
Awesome course better than many paid courses also i have a question which vs code theme are you using?
Also can you make a video on your vs code setup key binding and extension you used that will be fun to watch waiting for you reply🙌🏽❤️
Thanks for your videos.. your narration is excellent
great teaching sir
very very Good And beginner level content very easy to learn with piyush
I completed one playlist of nodejs... But there are no detailed like this... Thanks
Really good explanation.
Bhaiya you are the best. 🏆🏆
nicely explained ... Thanku
Thanks piyush for really helpful tutorial
Nice Explanation
Pta nhi mujhe kyun lag raha hai yeh banda mujhe node.js sikha k chodega....😊
After wondering many channels (like code with harry, coderdost) i am on right place.....thanks bhai❤❤❤
good and well
done explain
this is helpful ❤
Really good explanation
Thank you very much Piyush Sir ..
thank you very much bro continue making easy tutorials pls
yaar bro kya padhate ho
maja aa gya
hey there can anyone tell me which snippet to install for node js as There is no suggestion is showing in visual code
Your video are amazing; Please share link of your codes also
thank you so much bro 💕
super I am enjoying learning. Thanks
You are explanation to good 👍
Nice explanation 🔥
Just subscribed your Channel and exploring more contents of yours
Badhiya lecture tha
Very nice explanation...
zabardast🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
Thanku for such a nice explanation!
what is difference between npm run XXX and npm XXX sir?
npm run xxx used to run command from package.json(scripts) meanwhile npm xxx used to run built in npm commands.
can someone tell me which extension to install because my vscode is not giving suggestion like we see in this video
Great content sir!
best quality content for free
Hello, appendFileSync is not coming twice. it is just appending once in the text file. Please guide me
Make more videos on JavaScript projects and nodejs projects
I don't have auto suggestion option like the sir can someone tell which extension it is?
Did you find the solution?
hey im preparing for MERN stack. right now i have completed js and react. can you guide me that do this node js serice is beneficial for me as in a queue of javascript-react,node js, express -mongo db
Thank You Sir
Hi Piyush,
Thank you for the deep info, could you please share the github link for the NodeJS Series Tutorials
badiya explaination bro
is it compulsory to write callback function in async writefile
can we use the fs module to access any file on our system? or is it just for the files present in our current directory?
Extension konsa use kr rhe ho fs ke liy ...Please
when writing fs.writeFileSync("./test.text") it is showing error as module not found and writeFileSync is not a function please help
npm i fs
bro, can you please write code in the ES6 way, since I am just start learning , I want to start with the best practice in place. Also can you show everything in class way, how people use them in production. Please talk about socket API as well.. I tried the P2P project, google meet like conferencing tutorial of yours and find it difficult. So, if you kindly talk about the basics, then that would be real help
Don't Worry! We are going to cover each and everything in this playlist and make super easy for you to understand. After this playlist you'll be able to follow P2P as well with ease.
Bro there is a issue when using appendSync function your file appends the given text every time you run your code but in my case I am using same code but my text is appended only once and then remains same even if I run it 5 times
Please describe why is it so.
you need to comment out the writeFileSync and readFileSync lines . The reason is everytime the file.js is getting executed the writeFIleSync is deleting the previous demo.txt and creating a new demo.txt with the content passed to it and then it's appending the content of the appendFileSync .
Can some one tell any additional plugins to be installed to get intellisense suggestions. I'm not getting any of suggestions for objects created like fs object. Please suggest
Did you find any solution?
we can almost anything related to file e.g create edit delete
these are not available in normal js
const fs = require("fs")
there are two types of commands for file handling sync and async
// sync can return value that we can store in a variable
const data = fs.readFileSync("file.txt", "utf8");
console.log(data);
// sync requires a try and catch to handle error
const fs = require('node:fs');
try {
const stats = fs.statSync('/Users/joe/test.txt');
} catch (err) {
console.error(err);
}
// async can't return value so we can't store it in a variable
fs.readFile("file.txt", "utf8", (err, data) => {
console.log(data);
});
// async needs a call back where we can handle error
const fs = require('node:fs');
fs.stat('/Users/joe/test.txt', (err, stats) => {
if (err) {
console.error(err);
}
// we have access to the file stats in `stats`
});
thanks yarr
Sir mere vs code par ye automatic suggestions ni aa rahe hai file.readsync aesa
Did you find the solution?
Thankyou Sir
Thank you❤
Awesome
getting error Error: Cannot find module 'C:\Users\iamyo\OneDrive\Desktop\NodeJs\file.js'
solved now
can we access DOM via node?
require keyword not appearing in code completion in VS code please help me
explained very clearly thank you sir!!!!!!!
what does {recursive : true} do?
bro i dont know how but when I watch videos form this channel the video is always buffering and when I go a bit forward, it starts working! and it stops again
Bro mereme sare suggestions show nhi hote mujhe pura likhna pdta h fs.writefile pura likhne me even control space se bhi nhi hote....any suggestions kese theek ho skta h
Lets go 🚀
thanks ❤
amazing
Thanks bro
great
just wow
can you please provide the github link of these code files
fs.writeFilesync("./test.txt", "Hello world")
^
TypeError: fs.writeFilesync is not a function
writeFileSync
Lovely
vid-5 ✅
8:19 Galt bol diye h vo.. WriteFile sync nhi h vo.. Async hi hai hai na
💥💥
can you please provide the source code as well for your videos
anyone have node js handwritten notes
just wow...