std::basic_fstream::open
提供: cppreference.com
< cpp | io | basic fstream
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
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 ); |
(C++11およびそれ以降) | |
ファイルストリームで開き、仲間はファイル。失敗した場合に、成功またはclear()にsetstate(failbit)呼び出し.
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.
最初のバージョンでは、効果的に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.
2番目のバージョンでは、効果的に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.
目次 |
[編集] パラメータ
filename | - | ファイルの名前を開くことができます
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 | - | ストリームのオープンモードを指定します。それはビットマスク型ですが、以下の定数が定義されています:
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. |
[編集] 値を返します
(なし)
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.
[編集] 例
This section is incomplete Reason: no example |
[編集] も参照してください
ストリームに関連付けられたファイルがあるかチェックします (パブリックメンバ関数) | |
関連付けられているファイルを閉じます 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. (パブリックメンバ関数) |