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