Implemented basic file I/O.

git-svn-id: svn://kolibrios.org@2006 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
jaeger
2011-07-18 21:43:55 +00:00
parent 9437f5ae47
commit e971a25718
3 changed files with 286 additions and 3 deletions

View File

@@ -1,7 +1,12 @@
import kolibri
if __name__=="__main__":
print("ok!")
f = kolibri.open("/hd0/1/tinypy/test.txt")
print(f.size)
print(f.read())
f = kolibri.open("/hd0/1/tinypy/test.txt", "a")
l=[]
s=""
for i in range(10):
s = s + 'A'
l.append(s+'\n')
print(l)
f.writelines(l)
f.close()