C++ and C file I/O

后端 未结 9 1724
你的背包
你的背包 2020-12-05 03:54

C++ file I/O is tougher than C file I/O. So in C++, creating a new library for file I/O is useful or not? I mean Can anyone please tell are the

9条回答
  •  死守一世寂寞
    2020-12-05 04:18

    std::ifstream and std::ofstream are already in stl library. You don't have to create your own.

    The main benefit is all outputs and inputs are type safety.

提交回复
热议问题