WLJS LogoWLJS Notebook

FileNameJoin

FileNameJoin[{name1, name2, ...}] joins path components into a file path.

Examples

Join path components:

FileNameJoin[{"path", "to", "file.txt"}]
(* "path/to/file.txt" on Unix, "path\\to\\file.txt" on Windows *)

Create absolute path:

FileNameJoin[{$HomeDirectory, "Documents", "data.csv"}]

Please visit the official Wolfram Language Reference for more details.

On this page