Free functions to write and read a sequence container to and from a file. More...
#include <iostream>
#include <ios>
#include <iomanip>
#include <fstream>
#include <iterator>
#include <dune/common/exceptions.hh>
Go to the source code of this file.
Free functions to write and read a sequence container to and from a file.
Namespaces | |
namespace | Dumux |
Functions | |
template<typename Container > | |
void | Dumux::writeContainerToFile (const Container &v, const std::string &filename, int floatPrecision=6) |
Writes a container to file. More... | |
template<typename Container > | |
Container | Dumux::readStreamToContainer (std::istream &stream) |
Read an input stream into a container. More... | |
template<typename Container > | |
Container | Dumux::readFileToContainer (const std::string &filename) |
Read a simple text file into a container. More... | |