0

I want to pass some data processed in C# in real time to another python application for further realtime processing. I have trying to log those data into CSV file and let the python to read it simultaneously, however it seems that windows lock the CSV file and I can not read the file at the same time when C# is logging into it.

Does anyone know how to share real time data from C# to python?

Brian Tompsett - 汤莱恩
  • 5,195
  • 62
  • 50
  • 120
  • You may use our libraries, as mentioned in this answer: http://stackoverflow.com/a/34788064/1952991 – ceremcem Jan 14 '16 at 11:40

1 Answers1

0

One way would be to use a pipe: print out the stuff, and have the python program read it.

Files are more flexible. You can use them, you just have to change how you create them. When you create your FileStream, make sure to Specify FileShare.Read.

redtuna
  • 4,456
  • 18
  • 34