[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'sysutils' (#rtl) |
Rename a file.
Source position: filutilh.inc line 95
function RenameFile( |
const OldName: String; |
const NewName: String |
):Boolean; |
On Error, False is returned.
|
Delete a file from the filesystem. |
Program Example44; { This program demonstrates the RenameFile function } Uses sysutils; Var F : Longint; S : String; Begin S:='Some short file.'; F:=FileCreate ('test.dap'); FileWrite(F,S[1],Length(S)); FileClose(F); If RenameFile ('test.dap','test.dat') then Writeln ('Successfully renamed files.'); End.
No notes exist for this page yet.