## Path::Combine(const ArrayPtr\<String\>\&) method


Combines the specified path segments into a single path inserting directory separator characters between the segments if necessary.

```cpp
static String System::IO::Path::Combine(const ArrayPtr<String> &paths)
```


| Parameter | Type | Description |
| --- | --- | --- |
| paths | const ArrayPtr\<String\>\& | An array containing path segments to combine |

### ReturnValue

The combined path

## See Also

* Class [String](../../../system/string/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [Path](../)
* Namespace [System::IO](../../)
* Library [Aspose.PUB for C++](../../../)
## Path::Combine(const String\&, const String\&) method


Combines two specified path segments into a single path inserting directory separator character between the segments if necessary.

```cpp
static String System::IO::Path::Combine(const String &path1, const String &path2)
```


| Parameter | Type | Description |
| --- | --- | --- |
| path1 | const String\& | The first path segment |
| path2 | const String\& | The second path segment |

### ReturnValue

The combined path

## See Also

* Class [String](../../../system/string/)
* Class [Path](../)
* Namespace [System::IO](../../)
* Library [Aspose.PUB for C++](../../../)
## Path::Combine(const String\&, const String\&, const String\&) method


Combines three specified path segments into a single path inserting directory separator characters between the segments if necessary.

```cpp
static String System::IO::Path::Combine(const String &path1, const String &path2, const String &path3)
```


| Parameter | Type | Description |
| --- | --- | --- |
| path1 | const String\& | The first path segment |
| path2 | const String\& | The second path segment |
| path3 | const String\& | The third path segment |

### ReturnValue

The combined path

## See Also

* Class [String](../../../system/string/)
* Class [Path](../)
* Namespace [System::IO](../../)
* Library [Aspose.PUB for C++](../../../)
## Path::Combine(const String\&, const String\&, const String\&, const String\&) method


Combines four specified path segments into a single path inserting directory separator characters between the segments if necessary.

```cpp
static String System::IO::Path::Combine(const String &path1, const String &path2, const String &path3, const String &path4)
```


| Parameter | Type | Description |
| --- | --- | --- |
| path1 | const String\& | The first path segment |
| path2 | const String\& | The second path segment |
| path3 | const String\& | The third path segment |
| path4 | const String\& | The fourth path segment |

### ReturnValue

The combined path

## See Also

* Class [String](../../../system/string/)
* Class [Path](../)
* Namespace [System::IO](../../)
* Library [Aspose.PUB for C++](../../../)
