C++ and C file I/O

后端 未结 9 1679
你的背包
你的背包 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:13

    Please have a look at

    http://www.ddj.com/cpp/184403651

    then You will prefer C++ I/O than C I/O.

    in short C is prefered if you know data size prior to read or write and for speed. C++ is prefered if you don't know data size and for efficient code.

提交回复
热议问题