repo.or.cz
/
Projects.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial Commit
[Projects.git]
/
ai
/
utils
/
file.py
blob
c7bcb5f157d1628eb161ac1cf61e0d1830242f99
1
def
read
(
file
):
2
file
=
open
(
file
,
"r"
)
3
r
=
file
.
read
()
4
file
.
close
()
5
return
r
6
7
def
write
(
file
,
str
):
8
file
=
open
(
file
,
"w"
)
9
file
.
write
(
str
)
10
file
.
close
()