C/C++
fstream, ifstream ofstream

: -
: <fstream>
:

  • ios -> istream -> ifstream
  • ios -> ostream -> ofstream
  • ios -> iostream -> fstream

close
open

fstream();
explicit fstream(const char *filename, 
		 ios::openmode mode = ios::in | ios::out);

ifstream();
explicit ifstream(const char *filename,
		  ios::openmode mode = ios::in);

ofstream();
explicit ofstream(const char *filename,
		  ios::openmode mode=ios::out | ios::trunc);

fstream(), ifstream() ofstream() fstream, ifstream ofstream .

fstream(), ifstream() ofstream(), , , . open().

fstream() , ifstream() ofstream(), , , open(), , fstream, ifstream ofstream . , , open().( "open".) , .

ifstream mystream("myfile");

, false. , , open(), , , .


iostream fstream mode. , . iostream ios::in ios::out . , iostream .







Нет комментариев.



Оставить комментарий:
Ваше Имя:
Email:
Антибот: *  
Ваш комментарий: