Req: Import CSVs in FileShare.ReadWrite mode

More
3 years 8 months ago #4126 by sgoffman
Just a quality-of-life request:

Currently i2 Loc can't import a CSV that is open in Excel (sharing violation error).

An easy fix for this is to open the FileStream in "FileShare.ReadWrite" mode. You can do this in LocalizationReader.cs by replacing line 93 with these two lines:
using (var fileStream = new System.IO.FileStream(Path, System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.ReadWrite))
using (var reader = new System.IO.StreamReader(fileStream))

I've done this on my local copy and haven't had any problems (and no more sharing violations).

-Scott

Please Log in or Create an account to join the conversation.

Time to create page: 0.213 seconds
Template by JoomlaShine