How to implement the platform independent file handling with sharing option?

后端 未结 0 566
心在旅途
心在旅途 2021-01-05 02:05

Legacy code having:

 _sopen( filepath, _O_RDONLY, _SH_DENYNO);

I can change it to:

std::ifstream file{ filepath, std::ios::in          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题