Тёмный

C++ File Input and Output 

Shmeowlex
Подписаться 1,1 тыс.
Просмотров 65 тыс.
50% 1

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

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 38   
@azeez8399
@azeez8399 Год назад
Tried this code on Replit for Android and it works. Thanks!
@shmeowlex
@shmeowlex Год назад
Glad I can help :)
@DavisTibbz
@DavisTibbz Год назад
Nice. But i dont think you should exit with a return 0. You could return with -1 or EXIT_FAILURE
@chidanandskusur4054
@chidanandskusur4054 Год назад
Great explanation sir. 💐🌷🌹🥀🌻🌼
@shmeowlex
@shmeowlex Год назад
Glad I can help :)
@MementoMoriMementoVivere881
Great explanation ! thank you
@shmeowlex
@shmeowlex Год назад
You are welcome!
@priscusemmanuel8403
@priscusemmanuel8403 2 года назад
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
@Itisnot2late
@Itisnot2late Год назад
Thanks! It helped me a lot.
@shmeowlex
@shmeowlex Год назад
Glad it helped!
@mihai3043
@mihai3043 2 года назад
Thanks man, you helped me a lot.
@shmeowlex
@shmeowlex Год назад
Glad I could help!
@faresawachi3305
@faresawachi3305 Год назад
That was a Great explanation man, thanks. You saved me a lot of time and effort.
@shmeowlex
@shmeowlex Год назад
Glad I can help :)
@Little_G_Dizzle
@Little_G_Dizzle Год назад
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?
@shmeowlex
@shmeowlex Год назад
I am not familiar with the arduino platform unfortunately :(
@1..1..1..1H
@1..1..1..1H Год назад
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?
@shmeowlex
@shmeowlex Год назад
output files get deleted and recreated every time you open them.
@mr.shredder5430
@mr.shredder5430 7 месяцев назад
why are you using return 0 on if statement, i cannot get the logic?
@shmeowlex
@shmeowlex 5 месяцев назад
To terminate the program.
@chefskiss651
@chefskiss651 Год назад
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?
@shmeowlex
@shmeowlex Год назад
you would need to read everything in from the file into arrays, then output everything with the appended data.
@elaine3867
@elaine3867 Год назад
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
@shmeowlex
@shmeowlex Год назад
If the path to the file is invalid it will fail (i.e. if you wanted to place your output in an output directory but the output directory was not created yet).
@elaine3867
@elaine3867 Год назад
@@shmeowlex Understood, thanks!
@shushe3953
@shushe3953 Год назад
well explained way better then my professor fr
@shmeowlex
@shmeowlex Год назад
Glad I could help!
@Primer9
@Primer9 Год назад
Great video
@shmeowlex
@shmeowlex Год назад
Glad you enjoyed it
@Ali_X20
@Ali_X20 2 года назад
bro u r amazing
@shmeowlex
@shmeowlex Год назад
Glad I can help :)
@Evizzo
@Evizzo 2 года назад
is there a function build in or something so i aim at certain string/line of txt file with fstream ?
@shmeowlex
@shmeowlex Год назад
No, you would need to read through the file
@timog7358
@timog7358 6 месяцев назад
great video
@shmeowlex
@shmeowlex 5 месяцев назад
Glad you enjoyed it
@lemniscate23
@lemniscate23 Год назад
Very helpful
@shmeowlex
@shmeowlex 5 месяцев назад
Glad to help.
Далее
Output File Streams in C++ (Writing to Files)
13:47
Просмотров 38 тыс.
CORTE DE CABELO RADICAL
00:59
Просмотров 2,3 млн
+1000 Aura For This Save! 🥵
00:19
Просмотров 12 млн
File Handling in C++ Programming
16:06
Просмотров 357 тыс.
31 nooby C++ habits you need to ditch
16:18
Просмотров 788 тыс.
How to use binary files [an updated C++ tutorial]
19:18
How To Use ifstream To Read Files | C++ Tutorial
12:31
C++ Programming Tutorial 59 - Intro to IO Streams
9:41
My 10 “Clean” Code Principles (Start These Now)
15:12
why do header files even exist?
10:53
Просмотров 409 тыс.
POINTERS in C++
16:59
Просмотров 1 млн
Input and Output in C++
18:09
Просмотров 260 тыс.