Rev 2001 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2001 | Rev 2006 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | import kolibri |
1 | import kolibri |
2 | if __name__=="__main__": |
2 | if __name__=="__main__": |
3 | print("ok!") |
3 | print("ok!") |
4 | f = kolibri.open("/hd0/1/tinypy/test.txt") |
4 | f = kolibri.open("/hd0/1/tinypy/test.txt", "a") |
- | 5 | l=[] |
|
- | 6 | s="" |
|
- | 7 | for i in range(10): |
|
- | 8 | s = s + 'A' |
|
- | 9 | l.append(s+'\n') |
|
5 | print(f.size) |
10 | print(l) |
6 | print(f.read()) |
11 | f.writelines(l) |
7 | f.close() |
12 | f.close() |