summaryrefslogtreecommitdiff
path: root/tex/context/base/l-io.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-01-27 21:24:00 +0100
committerHans Hagen <pragma@wxs.nl>2013-01-27 21:24:00 +0100
commitfa502d65e5e502ef6a26eeb246267ced520ed139 (patch)
tree01a1ec7a640311bf0af1ae1996675cae04000810 /tex/context/base/l-io.lua
parent33fc570519a96f61b586ade8e4833326caaeaf7a (diff)
downloadcontext-fa502d65e5e502ef6a26eeb246267ced520ed139.tar.gz
beta 2013.01.27 21:24
Diffstat (limited to 'tex/context/base/l-io.lua')
-rw-r--r--tex/context/base/l-io.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/tex/context/base/l-io.lua b/tex/context/base/l-io.lua
index e48b448c5..06e1fb5ef 100644
--- a/tex/context/base/l-io.lua
+++ b/tex/context/base/l-io.lua
@@ -86,6 +86,8 @@ function io.savedata(filename,data,joiner)
end
end
+-- we can also chunk this one if needed: io.lines(filename,chunksize,"*l")
+
function io.loadlines(filename,n) -- return nil if empty
local f = io.open(filename,'r')
if not f then