File Handling in C++ Programming

preview_player
Показать описание
Support Simple Snippets by Donations -
--------------------------------------------------------------------------------------------- What are files and streams?
Files are used to store data permanently.
A stream is an abstraction that represents a device on which input and output operations are performed.
A stream can basically be represented as a source or destination of characters of indefinite length.

Three file handling data types :
ofstream : This data type represents the output file stream and is used to create files and to write information to files.
ifstream : This data type represents the input file stream and is used to read information from files.
fstream : This data type represents the file stream generally, and has the capabilities of both ofstream and ifstream which means it can create files, write information to files, and read information from files.

Simple Snippets Official Website -
Simple Snippets on Facebook-
Simple Snippets on Instagram-
Simple Snippets Google Plus Page-
Simple Snippets email ID-
Рекомендации по теме
Комментарии
Автор

Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌

SimpleSnippets
Автор

Best subscription request ever! It came out of nowhere and just had to hit subscribe the moment you mentioned it. Great video, never stop.

archenite
Автор

randomly studying on yt 1 day before exam .... :P

wt
Автор

It's unreal how comprehensive you make these subjects to be man. Another 16 minutes well spent for me. Thanks a lot for putting out this content

deadelaus
Автор

Thank you so much man, all the other yt videos just go on saying bookish definitions all the time, but your down right 1 on 1 ish language and explanation is so much more easier to understand.
Really like the way you do "so if I were to make this change , so and so would happen " and compile&run .

rahi
Автор

The '|' is a pipe, it is used here to connect the different streams together.

dgwebdex
Автор

You have no idea how helpful rhis is... sometimes while reading from the book....you may get stuck as what is the use of this operation...thankyou so much sir...!!!

viveklamba
Автор

Bro my friend name also Tanmayi she loves your channel and says she is thankful for learning c++ so easily. You also helped me, thank you bro. Cheers

harshaputta
Автор

Love you man due to your video i completed my lab task in 20 mins thank you very much
May ALLAH bless you..Ameen

harismasoom
Автор

You have been fabulous in describing every single line, thank you for explaining in such a detail.
Keep it up

sabamhabar
Автор

Oh my god you need so little code to read input, create a file, write to a file and then read from a file!
That's so awesome! Compared to java, cpp so far is looking damn amazing!

catea
Автор

Omg this helped me out a lot.
I was struggling with it
Thanks for explaining mn
Keep up the good work

reevebarreto
Автор

BRO.
👌👌FANTASTIC EXPLANATION 👏👏👏watching video a day before exam

gsrgsr
Автор

u know that iostream is a derived class of fstream
so if u are including fstream then u dont need to include iostream

harshgamer
Автор

Great and simple vid🔥 that explained me everything I just wanted...thx bruh...👍🏻

parthmahatungade
Автор

Very clearly explained Thank you simple snippets for clearing my concepts..

ankitapareek
Автор

You're very clear and to the point, thank you very much. Keep up the good work.

shahmeernasir
Автор

Awesome video explains everything in brief.

stonecold
Автор

Would you recommend using C++ streams over C style IO all the time? I've seen people use the latter in many cases, and I've always been confused as to why.

Zephyr-tghu
Автор

Nice understood very much uploading useful videos...

AtulKumar-gilv