file_stream 類別

檔案資料流類別包含檔案資料流的 Factory 函式。

template<
   typename _CharType
>
class file_stream;

參數

  • _CharType
    file_stream 的基本元素的資料類型。

Members

公用方法

名稱

描述

file_stream::open_istream 方法

多載。 開啟表示指定檔案的新輸入資料流。 檔案應該已經存在於磁碟上,否則會擲回例外狀況。

file_stream::open_ostream 方法

多載。 開啟表示指定檔案的新輸出資料流。 如果檔案不存在,就會建立,除非所要尋找的資料夾或目錄也不存在。

需求

**標頭:**filestream.h

**命名空間:**concurrency::streams

請參閱

參考

concurrency::streams 命名空間