mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-27 21:48:56 +02:00
43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
---
|
|
sidebar_position: 4
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
#
|
|
Read line Reads data from the specified connection as a string
|
|
|
|
|
|
|
|
`Function ReadLine(Val Connection, Val Encoding = "UTF-8", Val Marker = "", Val Timeout = 5000) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Connection | --tcp | Arbitrary | ✔ | Connection, see. CreateConnection |
|
|
| Encoding | --enc | String | ✖ | Encoding of data conversion to string |
|
|
| Marker | --marker | String, BinaryData | ✖ | End of message marker. Empty > without marker |
|
|
| Timeout | --timeout | Number | ✖ | Data waiting timeout (ms). 0 > no limit |
|
|
|
|
|
|
Returns: String - Received data as string
|
|
|
|
<br/>
|
|
|
|
:::tip
|
|
If the connection is closed, an error occurs, or EOF is detected, the read is terminated in either case
|
|
|
|
Parameters with Binary data type can also accept file paths on disk and URLs
|
|
:::
|
|
<br/>
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|