当前输出:
[SQLSERVER2008]
INSTALLSHAREDDIR = C:\ Program Files \ Microsoft SQL Server
必填项:
INSTALLSHAREDDIR =“C:\ Program Files \ Microsoft SQL Server”
Java代码:
Uesin org.ini4j api..............
String installDoc ="F:\\SQLExpressConfigurationFile_x64.ini";
Wini ini;
File file = new File(installDoc);
try {
ini = new Wini(file);
ini.put("SQLSERVER2008", "INSTALLSHAREDDIR", "C:\Program Files\\Microsoft SQL Server");
ini.store();
请告诉我如何使用ini4j api或其他API获取所需的输出。提前致谢
答案 0 :(得分:0)
使用反斜杠来转义双引号,如下所示:
"\"C:\Program Files\\Microsoft SQL Server\""