PList.ReadFile
--------------

Reads property list files.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [PList](component_PList.md) | [11.4](newinversion114.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "PList.ReadFile"; Path ) 

**MBS**( **"PList.ReadFile";** /\* Reads property list files. \*/  
**$Path**) /\* The native file path to the plist file. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | The native file path to the plist file. | $path |

### Result

Returns JSON or error.

### Description

Reads property list files.  
Can read files in binary or XML format.  
  
This function requires a native path. Use [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md) to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use [FileDialog](component_FileDialog.md) functions.  
For Server be aware that server has limited permissions and may not be able to access all files on a computer.  
### Examples

Read FileMaker info.plist file:

 MBS ("PList.ReadFile"; "/Applications/FileMaker Pro.app/Contents/Info.plist")  
### See also

- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)
- [PList.ReadData](PListReadData.md)

### Blog Entries

- [New in MBS FileMaker Plugin 11.4](https://www.mbsplugins.de/archive/2021-09-15/New_in_MBS_FileMaker_Plugin_11/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 29th August 2021 , last changed 29th August 2021

  
[PList.ReadData](PListReadData.md) - [PList.WriteData](PListWriteData.md)

[HTML Version](PListReadFile.shtml)