I have created a text file with content. It is located in the same folder as the cpp files. And I have confirmed several times that the file exists. When I run g++, compile
Try to add files to the project in XCode or use the absolute path instead.