I have created a C# console based project
. In that project i have some variables like companyName
, companyType
which are Strings.
companyName="someCompanyName";
companyType="someCompanyType";
I need to create a config file and read values from it, and then initialize the variables companyName
, companyType
in the code.
- How can i create a config file (or equivalent) ?
- How can i read from the config file ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…