Excel file in C # to write data operation

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; 
    }
Copy the code

Data write operation, the code used to add functions.

Guess you like

Origin www.cnblogs.com/ming-4/p/12446884.html