- . , . 0. - .
, , . , 4 , . 4, .
, , . , , 20 . , . , .
, () .
( ) , :
- ifstream();
- ofstream();
- fstream().
(), :
- ifstream (const char *name, int mode = ios::in);
- ofstream (const char *name, int mode = ios:out | ios::trunc);
- fstream (const char *name, int mode = ios::in | ios::out);
, . , . , , , , , ios ( 2, 1, 10, 100 ..):
ios::app | , ; |
ios::ate | , ; |
ios::in | , , ; |
ios::out | ( ); |
ios::trunc | , ; , ios::ate, ios::app ios::in; |
ios::binary | - , . |
, open, - . open , . , , .
, ( , open), -.
- close (), new. close , . .