Vlad Jichici

Vlad Jichici

  • 1.6k
  • 88
  • 1.2k

The process cannot acces the file because is being used by another prc

Mar 7 2022 11:04 AM

int i, j, k, l;
string sourcefile = "C:\\Users\\K90009861\\Downloads\\newfisier.txt";
Microsoft.Office.Interop.Excel.Application xlApp;
Microsoft.Office.Interop.Excel.Workbook xlWorkBook;
Microsoft.Office.Interop.Excel._Worksheet xlWorkSheet;
System.Reflection.Missing value = System.Reflection.Missing.Value;
object Value = value;
string[] lines, cells;
lines = File.ReadAllLines(sourcefile);


Answers (3)