use std::ofstream (ref 3300)
This commit is contained in:
parent
b43ee6dd04
commit
b7dd8331df
1 changed files with 1 additions and 2 deletions
|
@ -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 \""
|
||||
|
|
Loading…
Add table
Reference in a new issue