is this correct?

ofstream:used to output data into a file

ifstream:used to read data from a file

and an example of ifstream at work would help since i still cant seem to figure it out really confuses me for sum reason but it seems like an important concept that i need to master?