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
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‼️
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
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.
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 ❤
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❤❤❤
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.
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.
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
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 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 .
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
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
Saw many tutorials but none of them where better than you ... Need to say you are underrated tutor on UA-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!
Best teacher for WebDev
clean and clear explanation
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❤
Literally this is the only playlist to become master of node. Js ❤❤❤wow yrrr what a playlist 🥰🥰😘😘😘
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‼️
You realy explained it well. Your way of giving clearification is so good..
amazing teacher, I'm following you to learn NodeJS.
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
your turorials are one of the best. please we need best practices and architecture use in node project tutorial.
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.
A very big thanks, bro. You're explaining each topic in the finest way.
This is Complete beginner friendly to advance concepts and very deep series. ✅
your way of teaching is awesome ,i just loved it .
amazing and detailed Explanation..Thank you for providing in-depth knowledge..Keep posting and keep guiding.
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
your way of explanation is too good♥♥♥♥👍👍👍👍
This course is better then pain courses ... Glad i found it..
You explanation is superb bro
Thank you so much Bhai for providing this level of content for free ❤
sir can you make angular for beginners series your way of teaching is too good
Thanks for your videos.. your narration is excellent
One of the best Node.js playlist🔥
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.
Thanks piyush for really helpful tutorial
Thank you very much Piyush Sir ..
great teaching sir
very very Good And beginner level content very easy to learn with piyush
Simple word explanation. 🎉🎊
I completed one playlist of nodejs... But there are no detailed like this... Thanks
Really good explanation.
super I am enjoying learning. Thanks
thank you very much bro continue making easy tutorials pls
good and well
done explain
Nice Explanation
nicely explained ... Thanku
Make more videos on JavaScript projects and nodejs projects
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🙌🏽❤️
Bhaiya you are the best. 🏆🏆
Really good explanation
yaar bro kya padhate ho
maja aa gya
Your video are amazing; Please share link of your codes also
best quality content for free
You are explanation to good 👍
this is helpful ❤
Just subscribed your Channel and exploring more contents of yours
Thanku for such a nice explanation!
Nice explanation 🔥
Badhiya lecture tha
Very nice explanation...
thank you so much bro 💕
Thank You Sir
Great content sir!
zabardast🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
Awesome
Hi Piyush,
Thank you for the deep info, could you please share the github link for the NodeJS Series Tutorials
Thankyou Sir
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❤❤❤
explained very clearly thank you sir!!!!!!!
badiya explaination bro
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.
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.
Thank you❤
hey there can anyone tell me which snippet to install for node js as There is no suggestion is showing in visual code
amazing
great
Thanks bro
💥💥
just wow
thanks ❤
Extension konsa use kr rhe ho fs ke liy ...Please
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
can someone tell me which extension to install because my vscode is not giving suggestion like we see in this video
Hello, appendFileSync is not coming twice. it is just appending once in the text file. Please guide me
is it compulsory to write callback function in async writefile
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.
Lovely
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
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?
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 .
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
require keyword not appearing in code completion in VS code please help me
just wow...
I don't have auto suggestion option like the sir can someone tell which extension it is?
Did you find the solution?
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
what does {recursive : true} do?
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
done
can you please provide the source code as well for your videos
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?
getting error Error: Cannot find module 'C:\Users\iamyo\OneDrive\Desktop\NodeJs\file.js'
solved now
👍👍
can you please provide the github link of these code files
Sir mere vs code par ye automatic suggestions ni aa rahe hai file.readsync aesa
Did you find the solution?
fs.writeFilesync("./test.txt", "Hello world")
^
TypeError: fs.writeFilesync is not a function
anyone have node js handwritten notes
👍👍👍👍👍👍👍
vid-5 ✅
Sir new video kab tak upload karenge aap
Done :)