Example: Get the directory separator as string

public static int main (string[] args) {
// Output: ``/``
print ("%s\n", Path.DIR_SEPARATOR_S);
return 0;
}

 valac --pkg glib-2.0 GLib.Path.DIR_SEPARATOR_S.vala

See:




2022 vala-language.org