#include int main () { try { saga::filesystem::file f ("file://localhost/etc/passwd", saga::filesystem::Read); saga::mutable_buffer buf (10); int ret = f.read (buf); std::cout << "Wanted to read 10 bytes, and found " << ret << " (" << buf.get_size () << ")" << std::endl << (char*) (buf.get_data ()) << std::endl; } catch ( const saga::exception & e ) { std::cerr << "cannot create directory\n"; } }