单项选择题

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

A.ios_base::in
B.ios_base::in | ios_base::out
C.ios_base::out
D.ios_base::in&ios_base::out