Beispiel #1
0
int write_page(int fd, void *page, int i)
{
    return file_op(fd, page, i, &my_write);
}
Beispiel #2
0
void File::save(const string &filename, string* content)
{
	fstream file_op(filename.c_str(),ios::out);
	file_op << *content;
	file_op.close();
}
Beispiel #3
0
int read_page(int fd, void *page, int i)
{
    return file_op(fd, page, i, &read);
}