Commit b0b373f0 authored by Purves, Murray's avatar Purves, Murray
Browse files

Adding fclose statement to SPE write

parent ee9b8c4f
......@@ -117,14 +117,20 @@ bool SpectrumSPEStream<data_type>::read_from(const std::string &file)
result = true;
break;
}
else
{
radix_line(" Non-matching line read:\n " << line);
}
}
}
else
{
radix_line("Extraneous line in file: " << line);
radix_line("Extraneous line in file:\n " << line);
}
}
radix_line("End of file reached: last line was:\n " << line);
return result;
}
......@@ -236,6 +242,8 @@ bool SpectrumSPEStream<data_type>::write_to(const std::string &file) const
result = true;
}
fclose(stream);
return result;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment