ToFileName

As of Mathematica 7, has been superseded by FileNameJoin.


assembles a full file name from a directory name and a file name.


assembles a full file name from a hierarchy of directory names.


assembles a single directory name from a hierarchy of directory names.

DetailsDetails

  • works differently on different computer systems.
  • just creates a file name; it does not actually search for the file specified.
  • gives .
  • uses the current setting for $PathnameSeparator to separate elements of the file name.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Provide operating system dependent file name:

In[1]:=
Click for copyable input
Out[1]=
New in 3
New to Mathematica? Find your learning path »
Have a question? Ask support »