so pretty much explaining the use of fstream.h?

go for it!