我正在嘗試使用xmltextwriter並指定需要用於寫入的路徑。 我想這一點:c中的xmltextwriter路徑#
string path = "~/Uploads/site/" + Current.User.Id + .kml";
XmlTextWriter xtr = new XmlTextWriter(path, System.Text.Encoding.UTF8);
我想要的文件被保存在網站目錄內的上傳/網站/文件夾,但我得到了一個錯誤:
Could not find a part of the path 'c:\windows\system32\inetsrv\~\Uploads\site\16.kml'.
我想知道如何將所需的路徑分配給xmltextwriter。 由於提前,Laziale
第一線甚至不會編譯你得到這個錯誤。所以它不能是問題 – 2012-08-17 18:16:52
@ L.B: - 謝謝,以後得到它.. :) – perilbrain 2012-08-17 18:19:45