std::basic_fstream::open
De cppreference.com
[] |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody> void open( const char *filename, ios_base::openmode mode = ios_base::in|ios_base::out ); |
||
void open( const std::string &filename, ios_base::openmode mode = ios_base::in|ios_base::out ); |
(depuis C++11) | |
S'ouvre et associs de fichiers avec le flux de fichier. Appels
clear() en cas de succs ou d'chec .. setstate(failbit) surOriginal:
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.
La premire version efficacement appelle
rdbuf()->open(filename, mode).Original:
The first version effectively calls
rdbuf()->open(filename, 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.
La deuxime version efficacement appelle
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.
Paramtres
| filename | - | le nom du fichier ouvrir
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 | - | spcifie le mode de flux ouvert. Il est de type masque, les constantes suivantes sont dfinies:
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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Retourne la valeur
(Aucun)
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.
Exemple
| This section is incomplete Reason: no example |
Voir aussi
vrifie si le flux a un fichier associ 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. (fonction membre publique) | |
ferme le fichier associ 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. (fonction membre publique) | |