System.IOUtils.TFile Methods

From RAD Studio API Documentation
Jump to: navigation, search


InheritedProtected
AppendAllTextpublicAppends a given text to a file.
AppendTextpublicOpens a file in append mode.
CopypublicCopies a file to a given path.
CreatepublicCreates a new file and returns a stream associated with that file.
CreateSymLinkpublicCreateSymLink creates a symbolic link.
CreateTextpublicCreates a new textual file and returns a text writer associated with that file.
DecryptpublicDecrypts a file at a given path.
DeletepublicDeletes a file at the given path.
EncryptpublicEncrypts a file at a given path.
ExistspublicChecks whether a given file exists.
FileAttributesToIntegerpublic
GetAttributespublicReturns the file attributes.
GetCreationTimepublicReturns the creation time of a file.
GetCreationTimeUtcpublicReturns the creation time of a file in UTC (Coordinated Universal Time) time zone.
GetLastAccessTimepublicReturns the last access time of a file.
GetLastAccessTimeUtcpublicReturns the last access time of a file in UTC (Coordinated Universal Time) time zone.
GetLastWriteTimepublicReturns the last write time of a file.
GetLastWriteTimeUtcpublicReturns the last write time of a file in UTC (Coordinated Universal Time) time zone.
GetSymLinkTargetpublicGetSymLinkTarget reads the content of a symbolic link.
IntegerToFileAttributespublic
MovepublicMoves a file from a given path to another path.
OpenpublicOpens a file and returns a stream associated with that file.
OpenReadpublicOpens a file for reading and returns a stream associated with that file.
OpenTextpublicOpens a textual file for reading and returns a stream associated with that file.
OpenWritepublicOpens a file for writing and returns a stream associated with that file.
ReadAllBytespublicReads the contents of the file into a byte array.
ReadAllLinespublicReturns the contents of a textual file as a string array.
ReadAllTextpublicReturns the contents of a textual file as a string.
ReplacepublicReplaces the contents of a file with the contents of another file.
SetAttributespublicSets the file attributes.
SetCreationTimepublicChanges the creation time of a file.
SetCreationTimeUtcpublicChanges the creation time of a file.
SetLastAccessTimepublicChanges the last access time of a file.
SetLastAccessTimeUtcpublicChanges the last access time of a file.
SetLastWriteTimepublicChanges the last write time of a file.
SetLastWriteTimeUtcpublicChanges the last write time of a file.
WriteAllBytespublicWrites a byte array to a file.
WriteAllLinespublicWrites the given Contents string array to the Path text file.
WriteAllTextpublicEncodes the given Contents text and writes the obtained text into the Path text file.