createInput()

Input / Files

Description

Opens a file for binary reading. Returns a std::ifstream pointer.

Syntax

std::ifstream* createInput(std::string path)

Parameters

NameTypeDescription
pathstd::stringpath to the file

Returns

std::ifstream*

Related

Under the Hood

From Processing.h:

inline std::ifstream* createInput(const std::string& path) { return new std::ifstream(path,std::ios::binary); }