repo.or.cz
/
jpcrr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix PC halt vs. LuaPlugin print
[jpcrr.git]
/
lua
/
testfile.lua
blob
0b28b9103d6e3c475fd74c80669e83a4f68e13ae
1
file
,
err
=
io
.
open_read
(
"testfile"
);
2
if not
file
then
3
error
(
"Error opening file: "
..
err
);
4
end
5
6
content
,
err
=
file
:
read
();
7
file
:
close
();
8
9
if not
content
then
10
error
(
"Error reading file: "
..
err
);
11
end
12
13
print
(
"Aount read: "
.. #
content
);