Main Page | Namespace List | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

fileio.h File Reference


Detailed Description

File input/output similar to http://www.boost.org/libs/regex/index.htm, regex_merge_example.cpp sample.

Definition in file fileio.h.

#include "../cttl/coreutils.h"
#include <fstream>

Include dependency graph for fileio.h:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  cttl

Functions

void file2string (const CTTL_STD_STRING &filename_, CTTL_STD_STRING &str_)
 Inputs data from a text file and stores results in a string provided by the user.
CTTL_STD_STRING file2string (const CTTL_STD_STRING &filename_)
 Reads data from a text file and returns a string containing the data.
void string2file (const CTTL_STD_STRING &filename_, const CTTL_STD_STRING &str_)
 Writes data from string provided by the user into a text file.


Function Documentation

CTTL_STD_STRING file2string const CTTL_STD_STRING &  filename_  ) 
 

Reads data from a text file and returns a string containing the data.

Definition at line 62 of file fileio.h.

void file2string const CTTL_STD_STRING &  filename_,
CTTL_STD_STRING &  str_
 

Inputs data from a text file and stores results in a string provided by the user.

Definition at line 47 of file fileio.h.

void string2file const CTTL_STD_STRING &  filename_,
const CTTL_STD_STRING &  str_
 

Writes data from string provided by the user into a text file.

Definition at line 70 of file fileio.h.


Generated on Thu Nov 2 17:43:41 2006 for CTTL Utility Classes and Functions by  doxygen 1.3.9.1