#include <libaegis/input.h>
Go to the source code of this file.
Data Structures | |
class | input_file |
Functions | |
input | input_file_open (const nstring &fn, bool unlink_on_close=false, bool empty_if_absent=false) |
input | input_file_open (struct string_ty *fn, bool unlink_on_close=false) |
The input_file_open function is used to open thr standatd input, if the path is "-", or a URL if it looks like a URL, or otherwise an ordinary file.
path | The path of the file to be opened. | |
unlink_on_close | If true, the file is to be unlinked in the destructor. Defaults to false if not specified. | |
empty_if_absent | If true, the file is to be treated as if it was empty if it does not exist. No warning message will be issued. Defaults to false if not specified. |
input input_file_open | ( | const nstring & | fn, | |
bool | unlink_on_close = false , |
|||
bool | empty_if_absent = false | |||
) |
The input_file_open function is used to open thr standatd input, if the path is "-", or a URL if it looks like a URL, or otherwise an ordinary file.
path | The path of the file to be opened. | |
unlink_on_close | If true, the file is to be unlinked in the destructor. Defaults to false if not specified. | |
empty_if_absent | If true, the file is to be treated as if it was empty if it does not exist. No warning message will be issued. Defaults to false if not specified. |