Product SiteDocumentation Site

5.4.25.5. separator (Class Method)


>>-separator---------------------------------------------------><

Returns the file name separator used by the file system ("\" on Windows, "/" on Unix).
This query method is available as both an instance and class method.

Example 5.203. Class FILE - separator method


file = .File~new("dir1" || .File~separator || "dir2" || .File~separator || "file")
-- "dir1/dir2/file" on Unix, "dir1\dir2\file" on Windows