File helper.
More...
#include <FileHelper.h>
List of all members.
Detailed Description
File helper.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
Member Function Documentation
Adds a line to file to 'line'.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
filePath | Full pathname of the file. |
line | The line. |
- Returns:
- true if it succeeds, false if it fails.
Count files in the given folder.
- Author:
- Christian Knobloch
- Date:
- 22.12.2011
- Parameters:
-
sourcePath | Full pathname of the source file. |
fileCount | Number of files. |
- Returns:
- The total number of files in folder.
File action.
- Author:
- Christian Knobloch
- Date:
- 22.12.2011
- Parameters:
-
[in,out] | fileActionController | The file action controller. |
| sourcePath | Full pathname of the source file. |
| destinationPath | Full pathname of the destination file. |
- Returns:
- true if it succeeds, false if it fails.
File exists.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
fileName | Filename of the file. |
- Returns:
- true if it succeeds, false if it fails.
File exists and not empty.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
fileName | Filename of the file. |
- Returns:
- true if it succeeds, false if it fails.
Format file time.
- Author:
- Christian Knobloch
- Date:
- 25.06.2011
- Parameters:
-
- Returns:
- The formatted file time.
Gets the drive list.
- Author:
- Christian Knobloch
- Date:
- 16.06.2010
- Returns:
- The drive list.
Gets a formated file access date.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
fileName | Filename of the file. |
- Returns:
- The formated file access date.
Gets a formated file create date.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
fileName | Filename of the file. |
- Returns:
- The formated file create date.
Gets a formated file size.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
fileName | Filename of the file. |
- Returns:
- The formated file size.
Gets a formated file write date.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
fileName | Filename of the file. |
- Returns:
- The formated file write date.
Query if 'fileName' is directory.
- Author:
- Christian Knobloch
- Date:
- 25.06.2011
- Parameters:
-
fileName | Filename of the file. |
- Returns:
- true if directory, false if not.
std::vector< std::string > FileHelper::ReadFileToVector |
( |
const std::string & |
file, |
|
|
std::vector< std::string > * |
addToVector = NULL |
|
) |
| [static] |
Reads a file to vector.
- Author:
- Christian Knobloch
- Date:
- 19.04.2010
- Parameters:
-
| file | The file. |
[in,out] | addToVector | If non-null, the add to vector. |
- Returns:
- The file to vector.
The documentation for this class was generated from the following files: