I am running Ubuntu 16.04.4. I have an executable that takes initial condition inputs from a text file, performs calculations, and generates an output file. I want to run calculations for a large number of initial conditions, so I wrote a python script (python 3.5.2 running in Spyder 3) to create the input file, run the executable, and read in the outputs.
The script seems to create the input text file just fine, but the executable does not recognize the input file unless I first open the input file, make some sort of change, save, and close it. For instance, I can open the file, delete a character, replace it with the original character, save, and everything works. This of course, defeats the purpose of automating the process. Any thoughts as to the cause?