repo.or.cz
/
aqualang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
grand renaming to 'aqua' (well, 'Aqua' actually)
[aqualang.git]
/
examples
/
fileio.aq
blob
dae322533a1a4b2d26abfdeceb032e06219bae13
1
2
if((fh = File("/etc/lsb-release", "r")) != nil)
3
{
4
print("fh = ", fh, "\n")
5
for(k, v: fh)
6
{
7
print(" k(", k, ") = ", v, "\n")
8
}
9
data = fh.read(1024 * 1024)
10
print("data:\n", data, "\n")
11
fh.close()
12
}
13
else
14
{
15
print("opening that file seems to have failed...\n")
16
}
17