c# reading csv file gives not a valid path

前端 未结 7 1891
Happy的楠姐
Happy的楠姐 2020-12-05 07:04

I can\'t seem to read a .csv file using the following connection string:

var fileName = string.Format(\"{0}{1}\", AppDomain.CurrentDomain.BaseDirectory, \"Up         


        
7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-05 07:34

    If the D drive is a mapped network drive then you may need to use the UNC path:

    \\computerName\shareName\path\
    

提交回复
热议问题