This website requires JavaScript.
Explore
Help
Sign In
djsundog
/
circuitpython
Watch
1
Star
0
Fork
0
You've already forked circuitpython
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
090c9236e8
circuitpython
/
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 11:46:21 -05: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 17:01:32 -04:00
f
=
open
(
"
io/data/file1
"
)
print
(
f
.
readlines
(
)
)
Reference in New Issue
Copy Permalink