<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.
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.
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.
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:
|
|
Constant Original: Constant The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
Explanation
|
|
|
| app
|
versuchen Ende Strom vor jedem Schreibvorgang Original: seek to the end of stream before each write The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
| binary
|
Öffnen Sie im Binär-Modus Original: open in binary mode The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
| in
|
zum Lesen öffnen Original: open for reading The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
| out
|
zum Schreiben geöffnet Original: open for writing The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
| trunc
|
Verwerfen der Inhalt des Stroms beim Öffnen Original: discard the contents of the stream when opening The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
| ate
|
versuchen Ende Stromes unmittelbar nach geöffnet Original: seek to the end of stream immediately after open The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
Original: specifies stream open mode. It is bitmask type, the following constants are defined:
|
|
Constant Original: Constant The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
Explanation
|
|
|
| app
|
versuchen Ende Strom vor jedem Schreibvorgang Original: seek to the end of stream before each write The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
| binary
|
Öffnen Sie im Binär-Modus Original: open in binary mode The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
| in
|
zum Lesen öffnen Original: open for reading The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
| out
|
zum Schreiben geöffnet Original: open for writing The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
| trunc
|
Verwerfen der Inhalt des Stroms beim Öffnen Original: discard the contents of the stream when opening The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
| ate
|
versuchen Ende Stromes unmittelbar nach geöffnet Original: seek to the end of stream immediately after open The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
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.
Beispiel
Siehe auch
|
|
|
|
prüft, ob der Stream eine zugehörige Datei hat Original: checks if the stream has an associated file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) [edit]
|
|
|
|
|
schließt die zugehörige Datei Original: closes the associated file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) [edit]
|