File handling is an important part of any programming language.
We have two functions one is for reading a file and other one is for writing.