This course is about operating on files in C++ language using the fstream (file stream) library.
This course consists of over 2 hours of great content. Before buying, please watch free videos so that you will see for yourself if you like the way I teach.
You do not need to know anything about operating on files, but it's good idea to know the basics of C++ language.
After this course you will know:
Over 30,000 students bought my courses and all of them are happy. You will also be satisfied with this course. If you do not like the course, remember that within 30 days you can request a full refund. I guarantee you satisfaction.
If you have any questions regarding the topics covered in this C++ course, please feel free to ask. I'm always happy to help those who want to learn!
Please check out the free lessons first! See for yourself the great quality of my course and enjoy it!
Your learn how to close and open files and how to check if the filed was opened properly. You also learn how to simply put text into file.
You learn file opening modes (states) and differences between them. We learn how to open file and:
We discuss all stream's error flags and we show how to use them. You will know how to react on unexpected situations that happens during reading from the file like for example assigning string to integer or opening file for writing which had the flag set to only reading (ios::in)
You will know functions like:
and you will know how to operate on states (failbit, goodbit, badbit, eofbit) using bitwise operators and rdstate function.
You will know how to read whole file using one loop and eof function.
What are and how to use reading position pointer. How to programitically check how many bytes the file has. You will learn and understand functions that reads and sets position of reading pointer.
You will know what is and how to use writing position pointer. You will learn functions seekp and tellp which allows you to retrieve and show where is the writing pointer.
You will learn:
You will know how read function works. We are creating function that is counting size of file and function that is checking if two binary files are the same. We are training pointers on practical example. We also learn abot memcmp function which is used to compare memory.
You will learn hot to load characters from standard input (cin) and put them into the file. In addition to this you will learn how to add after each letter of string a space or any other character.
You will learn function that allows to peek characters before exracting and you will know how to retrieve information from steam in order to assign variables to the right type of variables.
You learn how to return extracted character back on the stream so it can be read again
You will learn how to save bytes to files and when you should use write function over saving operator (<<)
You will learn how to get count of characters retrieved from file on practical example.
Lesson where you gonna learn how to create mini database that allows you to:
- add people
- show added people
You gonna learn how to:
- save people to file
- load people from file
- search base by typing name
- remove person by id
I am the author of 27 very popular video courses about programming, web-development and math in Poland. I've also created 7 video courses in English. Over 30,000 people enrolled in my Udemy courses. I put all my heart into creation of courses. I always try to explain everything the easiest possible way. I'm sure that my courses will help you in the programming and web development adventure :)
I believe that everyone has the ability to develop software if they are taught properly. Including you. I'm going to give you the context of each new concept I teach you. After my course you will finally understand everything that you code.
I've been developing websites for over 15 years and I've been programming for over 10 years. I have enormous experience in that field and today I want to share with you my knowledge.
If you have any questions regarding any of the covered topics in my courses, please feel free to ask.