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 boost::system::system_error Thrown on failure. * * Exactly one of the following file_base::flags val
| 433 | * @endcode |
| 434 | */ |
| 435 | void open(const char* path, file_base::flags open_flags) |
| 436 | { |
| 437 | boost::system::error_code ec; |
| 438 | impl_.get_service().open(impl_.get_implementation(), path, open_flags, ec); |
| 439 | boost::asio::detail::throw_error(ec, "open"); |
| 440 | } |
| 441 | |
| 442 | /// Open the file using the specified path. |
| 443 | /** |
no test coverage detected