file.AsyncRead
Example
Prints the SteamIDs of players who will be automatically assigned to a user group when they connect to a server (Sandbox gamemode and derived).
file.AsyncRead( "settings/users.txt", "GAME", function( fileName, gamePath, status, data )
if ( status == FSASYNC_OK ) then
PrintTable( util.KeyValuesToTable( data ) )
end
end)
Output:
admin:
garry = STEAM_0:1:7099
superadmin:
garry = STEAM_0:1:7099