FileToKeyValues Function

Converts a file to a KeyValues tree. The file is read into the current position of the tree.

bool FileToKeyValues(Handle kv, const char[] file)

Parameters

Handle kv

KeyValues Handle.

const char[] file

File to read from.

Return Value

True on success, false otherwise.

Errors

Invalid Handle.