Aegis  4.25.D505
Data Structures | Functions
/home/archives/aegis/branch.4/branch.25/delta28933.505/libaegis/input/file.h File Reference
#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)

Function Documentation

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.

Parameters:
fnThe path of the file to be opened.
unlink_on_closeIf true, the file is to be unlinked in the destructor. Defaults to false if not specified.
empty_if_absentIf 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 ( 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.

Parameters:
fnThe path of the file to be opened.
unlink_on_closeIf true, the file is to be unlinked in the destructor. Defaults to false if not specified.
Note:
This function will soon be deprecated.