读ini配置文件value值长度有限制?
[GetScheduling]
InParamStr=1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
最长这么长?再多一个字符就报错了,如果有限制,那么还有什么好办法记录长配置信息?我是想记录存储过程的输出参数
OutParamStr=PlanID,s|WorkDate,s|RegTypeCode,s|RegTypeName,s|DeptCode,s|DeptName,s|DoctorWorkNum,s|DoctorName,s|Morning,s|MCan,int32|MRegister,int32|Afternoon,s|ACan,int32|ARegister,int32|Night,s|NCan,int32|NRegister,int32|VisitPosition,s|Price,decimal
private string ContentValue(string Section, string Key)
{
StringBuilder temp = new StringBuilder();
GetPrivateProfileString(Section, Key, "", temp, 2048, iniFilePath);
return temp.ToString();
}
InParamStr=1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
最长这么长?再多一个字符就报错了,如果有限制,那么还有什么好办法记录长配置信息?我是想记录存储过程的输出参数
OutParamStr=PlanID,s|WorkDate,s|RegTypeCode,s|RegTypeName,s|DeptCode,s|DeptName,s|DoctorWorkNum,s|DoctorName,s|Morning,s|MCan,int32|MRegister,int32|Afternoon,s|ACan,int32|ARegister,int32|Night,s|NCan,int32|NRegister,int32|VisitPosition,s|Price,decimal
private string ContentValue(string Section, string Key)
{
StringBuilder temp = new StringBuilder();
GetPrivateProfileString(Section, Key, "", temp, 2048, iniFilePath);
return temp.ToString();
}
...全文
相关推荐
C# .net读取ini配置文件
该函数负责从INI文件中读取指定节和键的值。
读写INI配置文件_vb.net
- `lpString`:表示键对应的值。- `lpFileName`:表示INI文件的完整路径。
嵌入式Linux系统读写INI配置文件C语言源码.docx
此代码段仅提供了读取整型值的功能,对于读取其他类型的数据(如字符串)或者写入配置文件,还需要扩展此函数。
INI配置文件的读写C代码.rar
INI配置文件是Windows系统中常见的文本格式,用于存储应用程序的设置和配置信息。它由一系列节(Section)、键(Key)和值(Value)组成,结构简单,易于读写。
VB读写ini文件的模块
**字符限制**:根据文中所述,INI文件中每条记录的长度有一定限制。具体来说,如果使用汉字,则每条记录不应超过86个字节;如果是英文,则不应超过143个字节。2.


