DOCUMENTATION CENTER SEARCH
Mathematica
>
File Operations
>
Built-in
Mathematica
Symbol
Introduction to Finding and Manipulating Files
Manipulating Files and Directories
Tutorials »
|
RenameFile
DeleteFile
CopyDirectory
See Also »
|
File Operations
Files
More About »
CopyFile
CopyFile
["
file
1
", "
file
2
"]
copies
file
1
to
file
2
.
MORE INFORMATION
file
1
must already exist;
file
2
must not.
CopyFile
sets the modification date for
file
2
to be the same as for
file
1
.
CopyFile
returns the full name of the file it copies to, and
$Failed
if it cannot do the copy.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
The name of the file to copy:
In[1]:=
Copy the file:
In[2]:=
Out[2]=
Import the new file:
In[3]:=
Out[3]=
Delete the file:
In[4]:=
SEE ALSO
RenameFile
DeleteFile
CopyDirectory
TUTORIALS
Introduction to Finding and Manipulating Files
Manipulating Files and Directories
MORE ABOUT
File Operations
Files
New in 2
© 2008 Wolfram Research, Inc.