mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 05:07:54 +00:00
Fixed issue with open file being reopened.
This commit is contained in:
parent
cf75a15be8
commit
a68ea46f14
@ -103,7 +103,7 @@ std::string Trick::MonteVarFile::get_next_value() {
|
||||
void Trick::MonteVarFile::set_file_name(std::string in_file_name) {
|
||||
delete input_file_stream;
|
||||
|
||||
input_file_stream = new std::ifstream(in_file_name.c_str(), std::ifstream::in);
|
||||
input_file_stream = new std::ifstream();
|
||||
if (input_file_stream->fail()) {
|
||||
std::stringstream string_stream;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user