File

File, Path, Directory related methods.


INIFileWrite

function INIFileWrite(FileName: String; Section, Key, Value: String): Boolean

INIFileRead

function INIFileDelete(FileName: String; Section, Key: String): Boolean

INIFileDelete

function INIFileDelete(FileName: String; Section, Key: String): Boolean

INIFileKeys

function INIFileKeys(FileName: String; Section: String): TStringArray

INIFileSections

function INIFileSections(FileName: String): TStringArray

ZipExtract

function ZipExtract(ZipFileName, OutputDir: String): Boolean;

ZipExtractEntries

function ZipExtractEntries(FileName, OutputDir: String; Entries: TStringArray): Integer;

ZipExtractEntry

function ZipExtractEntry(ZipFileName, FileName, OutputDir: String): Boolean;

ZipFiles

function ZipFiles(ZipFileName: String; Files: TStringArray): Boolean;

ZipReadEntries

function ZipReadEntries(FileName: String): TStringArray;

FileAppend

function FileAppend(FileName: String; Text: String): Boolean;

FileWrite

function FileWrite(FileName: String; Text: String): Boolean;

FileCopy

function FileCopy(SourceFileName, DestFileName: String; OverwriteIfExists: Boolean = True): Boolean;

FileRename

function FileRename(SourceFileName, DestFileName: String): Boolean;

FileDelete

function FileDelete(FileName: String): Boolean;

FileRead

function FileRead(FileName: String): String;

FileReadEx

function FileReadEx(FileName: String; Offset: Integer): String;

FileReadLines

function FileReadLines(FileName: String): TStringArray;

FileReadBytes

function FileReadBytes(FileName: String): TByteArray;

FileReadBytesEx

function FileReadBytesEx(FileName: String; Offset: Integer): TByteArray;

FileWriteBytes

function FileWriteBytes(FileName: String; Bytes: TByteArray): Boolean;

FileAppendBytes

function FileAppendBytes(FileName: String; Bytes: TByteArray): Boolean;

FileCreate

function FileCreate(FileName: String): Boolean;

FileExists

function FileExists(FileName: String): Boolean;

FileCreationTime

function FileCreationTime(FileName: String): TDateTime;

FileLastWriteTime

function FileLastWriteTime(FileName: String): TDateTime;

FileSize

function FileSize(FileName: String): Int64;

FileSizeInMegaBytes

function FileSizeInMegaBytes(FileName: String): Single;

PathExists

function PathExists(Path: String): Boolean;

PathNormalize

function PathNormalize(Path: String): String;

PathIsFile

function PathIsFile(Path: String): Boolean;

PathIsDirectory

function PathIsDirectory(Path: String): Boolean;

PathExtractName

function PathExtractName(Path: String): String;

PathExtractNameWithoutExt

function PathExtractNameWithoutExt(Path: String): String;

PathExtractExt

function PathExtractExt(Path: String): String;

PathExtractDir

function PathExtractDir(Path: String): String;

PathJoin

function PathJoin(Paths: TStringArray): String;

PathSetSeperators

function PathSetSeperators(Path: String): String;

PathExcludeTrailingSep

function PathExcludeTrailingSep(Path: String): String;

PathIncludeTrailingSep

function PathIncludeTrailingSep(Path: String): String;

PathExcludeLeadingSep

function PathExcludeLeadingSep(Path: String): String;

PathIncludeLeadingSep

function PathIncludeLeadingSep(Path: String): String;

PathExtractRelative

function PathExtractRelative(BasePath, DestPath: String): String;

PathChangeExt

function PathChangeExt(Path, NewExt: String): String;

PathIsInDir

function PathIsInDir(Path, Directory: String): Boolean;

DirList

function DirList(Path: String; Recursive: Boolean = False): TStringArray;

DirSearch

function DirSearch(Path: String; Mask: String; Recursive: Boolean = False): TStringArray;

DirCreate

function DirCreate(Path: String): Boolean;

DirDelete

function DirDelete(Path: String; OnlyChildren: Boolean): Boolean;

DirExists

function DirExists(Path: String): Boolean;

DirParent

function DirParent(Path: String): String;

DirIsEmpty

function DirIsEmpty(Path: String): Boolean;

DirSize

function DirSize(Path: String): Int64;

DirSizeInMegaBytes

function DirSizeInMegaBytes(Path: String): Single;

GetUserDir

function GetUserDir: String;

GetTempDir

function GetTempDir: String;

GetTempFileName

function GetTempFileName: String;