nanos world API Reference Unofficial documentation
Function Shared Fast

File:ReadAsync

Reads characters from the File asynchronously.

Syntax

Lua
my_file:ReadAsync(length = 0, callback)

Parameters

Name Type Default Description
length optional integer 0 Length to be read from file, pass 0 to read the whole file
callback function Callback
Callback signature function(file_content)
  • file_content string File content