std::basic_ifstream::open
Aus cppreference.com
<metanoindex/>
<tbody> </tbody> void open( const char *filename, ios_base::openmode mode = ios_base::in ); |
||
void open( const std::string &filename, ios_base::openmode mode = ios_base::in ); |
(seit C++11) | |
Opens und assoziierten Datei mit dem Strom. Ruft
clear() über Erfolg oder setstate(failbit) bei Ausfall .Original:
Opens and associates file with the file stream. Calls
clear() on success or setstate(failbit) on failure.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Die erste Version effektiv nennt
rdbuf()->open(filename, mode | ios_base::in).Original:
The first version effectively calls
rdbuf()->open(filename, mode | ios_base::in).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Die zweite Version effektiv nennt
open(filename.c_str(), mode) . Original:
The second version effectively calls
open(filename.c_str(), mode). The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Parameter
| filename | - | der Name der Datei, die geöffnet werden kann
Original: the name of the file to be opened The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mode | - | legt Stream offenen Modus. Es ist Bitmaske Typ sind die folgenden Konstanten definiert:
Original: specifies stream open mode. It is bitmask type, the following constants are defined:
The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Rückgabewert
(None)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Beispiel
| This section is incomplete Reason: no example |
