title: C++ on objective-c can not read .stl file
body: <p>I'm writing an iOS app with OpenGLES and try to load a binary stl model file by C++.</p>
  
  <p>I have a model file "model.stl" and I try to use fopen and ifstream to open the file, but the return value are both null. If I changed the extension of the model file to .txt, then it succeed. However, I think this is not a good solution.</p>
  
  <pre><code>myFile.open(path.c_str(), ios::in | ios::binary);
  if (!myFile)
      printf("fstream open fail\n");
  </code></pre>
  
  <p>The code above will print the error message if I load "model.stl", but if I load "model.txt", then it succeed.</p>