jie1 commited on
Commit
a266181
1 Parent(s): a0e2695

Upload Rfile.py

Browse files
Files changed (1) hide show
  1. Rfile.py +11 -0
Rfile.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ def j_reads(file):
2
+ with open(file, "r") as f:
3
+ contents = f.readlines()
4
+ return contents
5
+
6
+
7
+ def j_read(file):
8
+ with open(file, "r") as f:
9
+ content = f.readline()
10
+ return content
11
+