Example: Build a file name

public static int main (string[] args) {
// Output: ``my/full/path/to.txt``
string path = Path.build_filename ("my", "full", "path/to.txt");
print ("%s\n", path);
return 0;
}

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

See:




2022 vala-language.org