C++ Practice File Handling Reading and Writing to Text Files

Subscribers:
56,700
Published on ● Video Link: https://www.youtube.com/watch?v=wnkHie7_d8s



Duration: 0:00
154 views
5


Reading and writing to files in C++ with txt files. In this video, we practice reading and writing to files in C++. For this task, you will need to download the harry-potter-book-blurb.txt file in the github link.
https://github.com/ImKennyYip/cpp/blob/master/8. file IO/harry-potter-book-blurb.txt

Write a program to read the text file, and create a new text file called "word-count.txt". The output file will contain the list of unique words (case insensitive). You must skip non alphabet characters, and remove any non alphabetical characters. For example, in the text file, the word "spells," should just be spells without the comma.

If you need to review these past C++ topics:
Maps:    • C++ Maps, Unordered Maps, Multimaps  
Useful String Functions:    • C++ String Functions  
Reading and Writing to .txt Files:    • C++ File Handling Read and Write to Text F...  

C++ Playlist:
   • C++ Programming Tutorial  

Github Repo for C++ Code:
https://github.com/ImKennyYip/cpp

Install C++ with VS Code:
   • How to set up C++ in Visual Studio Code  

Subscribe for more coding tutorials 😄 !

🌟 If you enjoyed the tutorial and would like to support the channel, you can do so here: https://buymeacoffee.com/kennyyipcoding