Copy a file

The DataBlade® API provides the mi_file_to_file() function to enable you to copy an operating-system file between the computer on which the database server runs and the client computer. This function provides the open-mode flags for the new operating-system file.

Unlike the mi_file_open() function, these open-mode flags are not those of the underlying operating-system open function. Instead, mi_file_to_file() supports the set of DataBlade API file-mode constants in File modes for operating-system files.