Having trouble with fstream in Xcode

后端 未结 2 1507
渐次进展
渐次进展 2021-01-25 03:48

I\'m having trouble validating the existence of REGISTER.txt for input purposes in a function (see below). My understanding is that if the file doesn\'t exist, then the file won

2条回答
  •  没有蜡笔的小新
    2021-01-25 04:31

    REGISTER.txt is in the same directory as my .cpp file

    REGISTER.txt needs to be in the same directory as the binary (build/Release or elsewhere depending on your build settings)

提交回复
热议问题