Bertini 2 - C++ Core
Software for Numerical Algebraic Geometry
Loading...
Searching...
No Matches
file_utilities.hpp File Reference

Provides the file_utilities screens for bertini2. More...

#include <iostream>
#include <fstream>
#include <boost/filesystem.hpp>
Include dependency graph for file_utilities.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string bertini::FileToString (Path const &input_path)
 Read an entire file into a string.
 
void bertini::OpenInFileThrowIfFail (ifstream &in, Path const &input_path)
 Try to open a file, and throw if it doesn't exist, or is a directory.
 

Detailed Description

Provides the file_utilities screens for bertini2.

Function Documentation

◆ FileToString()

std::string bertini::FileToString ( Path const & input_path)
inline

Read an entire file into a string.

Returns
The string, now contaning the file.
Parameters
input_pathThe path to the file.

◆ OpenInFileThrowIfFail()

void bertini::OpenInFileThrowIfFail ( ifstream & in,
Path const & input_path )
inline

Try to open a file, and throw if it doesn't exist, or is a directory.