mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-01-09 12:23:15 -08:00
16 lines
267 B
Awk
16 lines
267 B
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
|
|
}
|