CopyFile Equivalent in Linux

From: Venkat (
Date: 09/10/04

Date: Fri, 10 Sep 2004 12:24:27 +0530

Hi All,

I was trying to use CopyFile method on Linux but it throws errors.
The CopyFile function copies an existing file to a new file.

BOOL CopyFile(
  LPCTSTR lpExistingFileName, // name of an existing file
  LPCTSTR lpNewFileName, // name of new file
  BOOL bFailIfExists // operation if file exists
Is the syntax in Linux got changed? or is there any other equivalent
function in Linux to do it. My Linux OS is RedHat AS 3.0.