v4 parser: added saving <filename>_results (only oo_)

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@607 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
michel 2006-01-18 16:15:44 +00:00
parent 8d8c267df5
commit 707e1f67bf
1 changed files with 6 additions and 6 deletions

View File

@ -65,12 +65,12 @@ int main(int argc, char** argv)
if (retval != 0) exit(-1);
// Execute final instructions
p.finish();
string name = argv[1];
name.erase(name.size()-4,4);
// Opening and init main Output file (M file)
output_file.Open(name+".m");
// Writing remaining string output to output file
output_file.Save(output);
string name = argv[1];
name.erase(name.size()-4,4);
// Opening and init main Output file (M file)
output_file.Open(name+".m");
// Writing remaining string output to output file
output_file.Save(output);
}
// Handeling parser and scanner exeptions