单项选择题

当使用ofstream流类定义一个流对象并打开一个磁盘文件时,文件的默认打开方式为( )。

A.ios base::in
B.ios_base::binary
C.ios base::in|ios base::out
D.ios base::out