1v0
1v0

Reputation: 352

Reading a text file in iOS using std C++

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

Answers (1)

user2742371
user2742371

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

Related Questions