forked from mrlan/EnglishPal
test
parent
c14de06c86
commit
cff0ce32b2
|
@ -38,10 +38,11 @@ class FileOpen:
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
wf = FileOpen.write_able(r"D:\Workspace\gitcode\EnglishPal\app\static\test.txt")
|
||||
wf.write("asdasdasd")
|
||||
wf.close()
|
||||
|
||||
rf = FileOpen.read_only(r"D:\Workspace\gitcode\EnglishPal\app\static\test.txt")
|
||||
for line in rf.readlines():
|
||||
print(line)
|
||||
pass
|
||||
# wf = FileOpen.write_able(r"D:\Workspace\gitcode\EnglishPal\app\static\test.txt")
|
||||
# wf.write("asdasdasd")
|
||||
# wf.close()
|
||||
#
|
||||
# rf = FileOpen.read_only(r"D:\Workspace\gitcode\EnglishPal\app\static\test.txt")
|
||||
# for line in rf.readlines():
|
||||
# print(line)
|
Loading…
Reference in New Issue