> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# read_pmdat

#### FileIO.read\_pmdat(file\_name, file\_read\_params)

Read a PyPrimeMesh data (PMDAT) file.

* **Parameters:**

  **file\_name**
  : Path to the data file on disk.

  **file\_read\_params**
  : Parameters for reading the data file.

* **Returns:**

  [`FileReadResults`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.FileReadResults)
  : Results from reading the data file.

* **Return type:**

  [`FileReadResults`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.FileReadResults)

### Notes

This method does not support Unicode paths.

### Examples

```python theme={null}
>>> import ansys.meshing.prime as prime
>>> #connect client to server and get model from it
>>> client = prime.Client(ip="localhost", port=50060)
>>> model = client.model
>>> file_io = prime.FileIO(model=model)
>>> file_read_params = prime.FileReadParams(model=model)
>>> results = file_io.read_pmdat("/tmp/file.pmdat", file_read_params)
```
