File stream class containing factory functions for file streams.
More...
#include <filestream.h>
|
static pplx::task< streams::basic_istream< _CharType > > | open_istream (const utility::string_t &file_name, std::ios_base::openmode mode=std::ios_base::in, int prot=0) |
| Open a new input stream representing the given file. The file should already exist on disk, or an exception will be thrown. More...
|
|
static pplx::task< streams::basic_ostream< _CharType > > | open_ostream (const utility::string_t &file_name, std::ios_base::openmode mode=std::ios_base::out, int prot=0) |
| Open a new ouput stream representing the given file. If the file does not exist, it will be create unless the folder or directory where it is to be found also does not exist. More...
|
|
template<typename _CharType>
class Concurrency::streams::file_stream< _CharType >
File stream class containing factory functions for file streams.
- Template Parameters
-
_CharType | The data type of the basic element of the file_stream . |
template<typename _CharType >
Open a new input stream representing the given file. The file should already exist on disk, or an exception will be thrown.
- Parameters
-
file_name | The name of the file |
mode | The opening mode of the file |
prot | The file protection mode |
- Returns
- A
task
that returns an opened input stream on completion.
template<typename _CharType >
Open a new ouput stream representing the given file. If the file does not exist, it will be create unless the folder or directory where it is to be found also does not exist.
- Parameters
-
file_name | The name of the file |
mode | The opening mode of the file |
prot | The file protection mode |
- Returns
- A
task
that returns an opened output stream on completion.
The documentation for this class was generated from the following file: