use std::ofstream (ref 3300)

This commit is contained in:
artemp 2016-02-18 12:54:17 +01:00
parent b43ee6dd04
commit b7dd8331df

View file

@ -255,8 +255,7 @@ int main (int argc,char** argv)
if (count > 0)
{
std::clog << " number shapes=" << count << std::endl;
std::fstream file((shapename+".index").c_str(),
std::ios::in | std::ios::out | std::ios::trunc | std::ios::binary);
std::ofstream file((shapename+".index").c_str(), std::ios::trunc | std::ios::binary);
if (!file)
{
std::clog << "cannot open index file for writing file \""