Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > read() |
![]() ![]() ![]() |
read()
Syntax
file("WhichTextFile
").read( {bytesToRead} )
Description
Multiuser Server server-side function; reads a string from the specified text file. If no number of bytes is specified, all the bytes in the file are read. If a number of bytes is specified, only that number of bytes is read from the beginning of the file.
Example
This server-side statement reads 255 bytes from the text file Longspeech.txt and assigns the string to the variable tempText
:
tempText = file("HardDrive:TextFiles:Longspeech.txt").read(255)
![]() ![]() ![]() |