How do I read a text file from the second line using fstream?

后端 未结 8 1671
野趣味
野趣味 2020-12-31 03:19

How can I make my std::fstream object start reading a text file from the second line?

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-31 04:02

    this code can read file from your specified line from file but you have to make file in file explorer before hand my file name is "temp" code is given below

    https://i.stack.imgur.com/OTrsj.png

    hope this can help

提交回复
热议问题