From Xojo Documentation

Revision as of 01:25, 30 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

TCPSocket.ReadAll([Encoding as TextEncoding]) As String

Supported for all project types and targets.

Reads all the data from the internal buffer.

Returns the data as a String. The optional Encoding parameter enables you to specify the text encoding of the data to be returned. Use the Encodings module to specify a text encoding.


This example reads all the data in the buffer into a TextArea.