path_separator

Top  Previous  Next

Scripts > Class elements and c++ instructions > File handling > path_separator

 

path_separator is a string constant for the path separator. The constant contains the value which is used by the operating system to separate lists and files from each other in paths

 

Windows :        "\\"

Unix :                "/"

 

 

So, e.g.:

 

path = directory + path_separator + filename;

 

results in a correct path for all operating systems, which are covered by the boost filesytem library.



This page belongs to the TextTransformer Documentation

Home  Content  German