Cold Help System: Programming: ColdC Reference Manual: Functions: File: frename()


INTEGER frename(ANY from, STRING to)

This function renames the file specified by the argument from, to the name specified by the argument to. If from is not a string or is logically false, the driver renames the file on the current object. Do not rename the file on the current object by specifying the file's name, as the driver will not know the name has changed and this may cause confusion at a later time. Example:

frename("", "old.txt")
=> 1


dblog() | execute() | fchmod() | fclose() | feof() | fflush() | file() | files() | fmkdir() | fopen() | fread() | fremove() | frename() | frmdir() | fseek() | fstat() | fwrite()


the Cold Dark