Jump to content

  • Log In with Google      Sign In   
  • Create Account

henrykl

Member Since 17 Jun 2012
Offline Last Active Jul 10 2013 05:08 AM

#5075866 Simple Binary File I/O question

Posted by on 07 July 2013 - 03:55 AM

I am currently writing a Maya exporter. i already got it working in .xml format but im trying to port it over to a binary file.

When I try to create the binary file it always fails. Any Ideas on why this might be:

 

string path = writeOutMesh.m_strName + ".mesh";
std::ofstream BinOut;
BinOut.open(path.c_str(),std::ios_base::binary | std::ios_base::trunc);
 
if( !BinOut.is_open() )
return;
 
It always hits the return.
Any help will be much appreciated 
Thanks 



PARTNERS