METHOD

File.Move

Moves a file to a destination, optionally replacing it; does not by itself promise crash durability.

Formal Syntax & Structure

csharp syntaxcsharp
File.Move(sourceFileName, destFileName, overwrite)

Working Example

Example Snippetcsharp
// Documentary fragment; see lesson for context and imports.File.Move(candidate, current, overwrite: true);
C# & .NET Reference