Skip to content
This repository was archived by the owner on May 29, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion core/lib/FileHandling/FFStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ namespace gpstk
void FFStream ::
init( const char* fn, std::ios::openmode mode )
{
close();
//close will fail if the stream is not currently open
//This will throw an exception is the fstream is set to
//throw exceptions on failures (exceptions(ifstream::failbit))
if(is_open())
close();

clear();
filename = std::string(fn);
recordNumber = 0;
Expand Down