filebuf* close();
this, if successful.1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// filebuf::close()
#include <iostream>
#include <fstream>
int main () {
std::ifstream is;
std::filebuf * fb = is.rdbuf();
fb->open ("test.txt",std::ios::in);
// appending operations
fb->close();
return 0;
}