aboutsummaryrefslogtreecommitdiff
path: root/telem.lua
diff options
context:
space:
mode:
Diffstat (limited to 'telem.lua')
-rwxr-xr-xtelem.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/telem.lua b/telem.lua
index b73c275..91916fd 100755
--- a/telem.lua
+++ b/telem.lua
@@ -26,10 +26,7 @@ current_post_index = nil -- Integer index into current_thread_posts
-- Utility functions
function cat_file(filename)
- io.input(filename)
- contents = io.read("*all")
- io.input(io.stdin)
- io.write(contents)
+ io.write(file.read(filename))
end
function getchar()