HEX
Server: Apache
System: Linux gator4059.hostgator.com 5.14.0-687.5.4.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 28 09:20:26 EDT 2026 x86_64
User: jconxus (691)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //usr/share/awk/readfile.awk
# readfile.awk --- read an entire file at once
#
# Original idea by Denis Shirokov, cosmogen@gmail.com, April 2013
#

function readfile(file,     tmp, save_rs)
{
    save_rs = RS
    RS = "^$"
    getline tmp < file
    close(file)
    RS = save_rs

    return tmp
}