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 ( 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:
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.
Note:
This function will soon be deprecated.

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:
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.


Generated on Wed Mar 12 23:37:37 2008 for Aegis by  doxygen 1.5.5