Open the file using the specified path.
void open( const std::string & path, file_base::flags open_flags);
This function opens the file so that it will use the specified path.
The path name identifying the file to be opened.
A set of flags that determine how the file should be opened.
Thrown on failure.
asio::stream_file file(my_context); file.open("/path/to/my/file", asio::stream_file::read_only);