Thanks to everyone who answered me: I have now checked several codes, depending on what I was answered, and came up with this summary:
:
ios:: out , , ios:: in , ( read() → - ifstream), .
ifstream:
ios:: in - , , ios:: out ifstream, ( write() < lt; or some ofstream object), .
fstream:
, , . , , , .
, !