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

File:ReadAsync

Reads characters from the File asynchronously.

Non ancora tradotto

Sintassi

Lua
my_file:ReadAsync(length = 0, callback)

Parametri

Nome Tipo Predefinito Descrizione
length facoltativo integer 0 Length to be read from file, pass 0 to read the whole file
callback function Callback
Firma della callback function(file_content)
  • file_content string File content