Req: Import CSVs in FileShare.ReadWrite mode

More
1 month 1 day 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.102 seconds
Template by JoomlaShine