C++ File Input and Output

preview_player
Показать описание
In this video you will learn to take in input from a file and output to a file using the fstream library in C++.

Production: Shmeowlex
Graphics : Shmeowlex
Editing: Shmeowlex

#C++ #Programming #ComputerScience
Рекомендации по теме
Комментарии
Автор

Nice. But i dont think you should exit with a return 0. You could return with -1 or EXIT_FAILURE

DavisTibbz
Автор

I need help sir, I am using a MacBook Pro and I can't open these files or create one for that matter, I would appreciate your help

priscusemmanuel
Автор

That was a Great explanation man, thanks. You saved me a lot of time and effort.

faresawachi
Автор

Tried this code on Replit for Android and it works. Thanks!

azeez
Автор

well explained way better then my professor fr

shushe
Автор

Is there a need to check if the output file exists? Because from what I know, the output file will be created automatically in the project folder if it does not exist

elaine
Автор

I have a question. What if your input and output files are the same? I mean like the results of your input has to be added to the same file?

chefskiss
Автор

I have one question: after making the file, where does it get stored? I am using an arduino R3 and a SD card as my source of storage, how do I move the file to an external drive?

Little_G_Dizzle
Автор

Why does the info get deleted when I run the program again even though I wrote endl at the end? and how do I prevent that from happening?

......H
Автор

is there a function build in or something so i aim at certain string/line of txt file with fstream ?

Evizzo
Автор

why are you using return 0 on if statement, i cannot get the logic?

mr.shredder