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