Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione Condiviso

File:Read

Reads characters from the File and returns it. Also moves the file pointer to the latest read position. Pass 0 to read the whole file

Non ancora tradotto

Sintassi

Lua
my_file:Read(length = 0)

Parametri

Nome Tipo Predefinito Descrizione
length facoltativo integer 0 Length to be read from file, leave it empty (or 0) to read the whole file

Valore restituito

  • string file data