This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
micropython
mirror of
https://github.com/micropython/micropython.git
Watch
1
Star
0
Fork
You've already forked micropython
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
6dba992182
micropython
/
tests
/
io
/
file1.py
7 lines
126 B
Python
Raw
Normal View
History
Unescape
Escape
Add directory for I/O tests with basic test for file methods.
2014-01-19 16:46:21 +00:00
f
=
open
(
"
io/data/file1
"
)
print
(
f
.
read
(
5
)
)
print
(
f
.
readline
(
)
)
print
(
f
.
read
(
)
)
py, stream: Implement readlines for a stream.
2014-05-03 22:01:32 +01:00
f
=
open
(
"
io/data/file1
"
)
print
(
f
.
readlines
(
)
)