C # data write operation performed on the Excel file:
First write a function
CPATH static String Private (String path) { var index = path.LastIndexOf ( "/"); var path.Substring TEMP = (0, index); (! Directory.Exists (TEMP)) // if there is no IF created file folders Directory.CreateDirectory (temp); // create the folder return path; }
Data write operation, the code used to add functions.
{ s.WriteLine($"{"列1"},{"列2"}"); }