Good day! I am wondering if there is any way in which one can allow different programming languages to access a csv at the same time. I am using c# to get live stock market data, and then Python does calculations on this data where it then returns the data to the csv file to be read by c# again, it works if I use multiple steps i.e. collect historical data predict the historical data and read the historical data, but when I try to do this in one step(live) I get the following error.
[Errno 13] Permission denied: 'CurrencyPair-Minute.csv'
I think this is the result of the file being used by the c# program. Which I opened with the following parameters
File.Open(fiName, FileMode.Open, FileAccess.ReadWrite, FileShare.Write);
I only close the data streams when the program stops and to the streams are continually open for reading and writing in the c# program. If I close the stream while the file is not being read or written the error I get is
Crashed in (MethodName) with ArgumentException: Stream was not readable.
Also, this will not work since the Python program continually needs to check the file for updates.
Any help would be appreciated
Thank you