Reputation: 352
After reading a lot of related SO questions, I am still wondering:
Is it possible to read a (text) file in iOS using only std C++
in a cpp file on iOS?
Upvotes: 2
Views: 592
Reputation:
Yes it is possible.
Your source file should be a .mm
file and to get the path of the file you should use Objective-C classes. The path will likely be an NSString
which is convertable to an std::string
.
Upvotes: 2