Process - Can not access the File + C# and Write to Csv from Excel -


is there equivalent of fileshare = readwrite while writing microsoft excel using vba code.

i have file watcher implemented in c# application, start reading csv file it's created (i've tried time delay of 1.5 seconds). sometimes, due network latency, or volume of data - excel still writing file, while application starts reading it.

i open csv using following code - still acces violation error " “in use process” exception" error

using (var csv = new filestream(csvfile, filemode.open, fileaccess.read, fileshare.readwrite)) 

thanks


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -