std::basic_ifstream::rdbuf

From cppreference.com
< cpp‎ | io‎ | basic ifstream

basic_filebuf<CharT, Traits>* rdbuf() const;
(since C++11)

Returns pointer to the underlying raw file device object.

[edit] Parameters

(none)

[edit] Return value

Pointer to the underlying raw file device.

[edit] Example