mirror of
https://github.com/nasa/trick.git
synced 2025-06-01 15:10:59 +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) {
|
void Trick::MonteVarFile::set_file_name(std::string in_file_name) {
|
||||||
delete input_file_stream;
|
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()) {
|
if (input_file_stream->fail()) {
|
||||||
std::stringstream string_stream;
|
std::stringstream string_stream;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user