I have some simple question about reading and writting files using Python. I want to read (just reading without writting) the same file from one script and read+write from other script.
Script_1 - Only reading:
with open("log.txt", "r") as f:
content = f.read()
Script_2 - Read and write:
with open("log.txt", "a+") as f:
content = f.read()
f.write("This is new line,")
And my question is - Is this ok?
Will I get some errors or sth when scripts try to access to the same file at exactly the same time? (yeah it's hard to test this ^^)
I mean I was reading some posts about this and I'm not sure now.