Open the file using the specified path. * This function opens the file so that it will use the specified path. * * @param path The path name identifying the file to be opened. * * @param open_flags A set of flags that determine how the file should be * opened. * * @throws asio::system_error Thrown on failure. * * @par Example * @code * asio::stream_file file(my_con
| 366 | * @endcode |
| 367 | */ |
| 368 | void open(const char* path, file_base::flags open_flags) |
| 369 | { |
| 370 | asio::error_code ec; |
| 371 | impl_.get_service().open(impl_.get_implementation(), path, open_flags, ec); |
| 372 | asio::detail::throw_error(ec, "open"); |
| 373 | } |
| 374 | |
| 375 | /// Open the file using the specified path. |
| 376 | /** |