FAST.Framework  1.0.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
FFile Class Reference

#include <FFile.h>

Inheritance diagram for FFile:
Inheritance graph
[legend]
Collaboration diagram for FFile:
Collaboration graph
[legend]

Public Member Functions

 FFile (const FString &filename)
 Constructor file objects.
 
 FFile ()
 Constructor file objects.
 
virtual ~FFile ()=default
 Destroys the file object.
 
Boolean Open (FAccessMode accesMode)
 Open the file.
 
FString Read () const
 Read file.
 
FList< FStringReadLines () const
 Read lines in the file.
 
ULLong Write (const FString &string) const
 Write string into the buffer.
 
Boolean Flush () const
 Write buffer into the file.
 
Boolean Close () const
 Close the file.
 
Boolean Rename (const FString &filename)
 Rename current file.
 
Boolean Delete () const
 Delete current file.
 
FString Name () const
 Gets the name of this file instance.
 
FString FullName () const
 Gets the path of this file instance.
 
Boolean Exists () const
 Returns TRUE if file exists, otherwise FALSE.
 
FString Extension () const
 Gets the string representing the extension part of the file.
 
FDirectory Directory () const
 Gets an instance of the parent directory.
 
FDateTime CreatedAt () const
 Returns the creation date and time of the specified file or directory.
 
FDateTime LastAccessAt () const
 Returns the date and time the specified file or directory was last accessed.
 
FDateTime LastWriteAt () const
 Returns the date and time the specified file or directory was last written to.
 
ULLong Size () const
 Gets the size, in bytes, of the current file.
 
const type_info & GetType () override
 Returns the type info over object.
 
FString GetName () const override
 Returns the name of object.
 
- Public Member Functions inherited from FObject
 FObject ()=default
 Constructor.
 
virtual ~FObject ()=default
 Destructor.
 

Static Public Member Functions

static Boolean Delete (const FString &filename)
 Delete the file.
 
static Boolean Rename (const FString &oldFilename, const FString &newFilename)
 
static Boolean Exists (const FString &filename)
 Returns TRUE if file exists, otherwise FALSE.
 
static Boolean Touch (const FString &filename)
 Returns TRUE if file successfull created, otherwise FALSE.
 
static ULLong Size (const FString &filename)
 Returns TRUE if file successfull created, otherwise FALSE.
 

Protected Member Functions

const char * PrintAccessMode (FAccessMode accessMode)
 Returns accessMode as string.
 

Detailed Description

Initializes a new instance of the FFile class, which acts as a wrapper for a file path

Member Function Documentation

◆ Rename()

Boolean FFile::Rename ( const FString oldFilename,
const FString newFilename 
)
static
Parameters
oldFilenameRename the file

The documentation for this class was generated from the following files: