open()
#include <fstream.h> void open(const char *filename, int mode, int access=filebuf::openprot); fstream, ifstream ofstream. open() . filename . mode , . .
(OR), ( ). ios::, . , . ios::ate , - . ios::binary -. . ios::in , ios::out . ifstream , ofstream , fstream , . ios::trunc , . ios::nocreate open() , . ios::norepiace open(), , ios::ate ios:: . access . filebuf::openprot (filebuf ), . access . , mode access , . , mode ios::in. , mode ios::out. access (normal file). , TEST . out.open("test"); // // , mode ios::in ios::out, . mystream.open("test", ios::in | ios:out); / , , , , open() , . , , , . |
Нет комментариев. Оставить комментарий: |