Head
The file.head function returns the first line of the file. Only up
to the first 256 characters are returned. If the file does not exist,
or ASCII control characters (except tab) are read, it fails and
nothing is returned.
Syntax
%file.head(string)
Example 1. Returning the first line of a file
string line
line := %file.head("/var/log/radius.log")
File access restriction
Files accessed in this function are restricted by the limit files
section in the main
security
configuration. If present in radiusd.conf, only files in the paths
listed can be accessed.