2009-09-10 49 views

回答

2

您會將信息在web.config文件

<appSettings> 
    <add key="Directory" value="F:\PM" /> 
    </appSettings> 

要讀值出配置文件

string directoryLocation = ConfigurationSettings.AppSettings["Directory"]; 

的更新從WinForms應用程序的文件,你可以閱讀並更新文件。