BCVTB, PythonActor external file read and write issue
I am attempting to read (and/or) write onto external text file in the fired PythonActor.py function. When I use the 'with' keyword, there seems to be an error. (the below method is synchronous, thus more preferable)
with open('Path/to/file', 'r') as content_file:
content = content_file.read()
But when I use the conventional methods (not the latest, though), it is working properly. But since this method is asynchronous, the method is not coherent & not (always) sequential
content_file = open(file_path,'r')
f.write(data)
f.close()
Any guidance would be helpful!! This is a part of my model: