This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

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.
  • works differently on different computer systems.
  • just creates a file name; it does not actually search for the file specified.
  • gives .
Provide operating system dependent file name:
Provide operating system dependent file name:
In[1]:=
Click for copyable input
Out[1]=
New in 3