I am using FileHelper for exporting the data to csv for my C#
project. I am facing an exception
"The process cannot access the file"
the reason is the file is already opened. Is there any option to check whether the file is already opened or not.
FileHelperEngine engine = new FileHelperEngine(typeof(ClassName));
engine.WriteFile("file.csv", obj);
Thanks in advance.