From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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.