InParamStr=1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
The longest so long? One more character is an error, if there is a limit, so what's a good way to record long configuration information? I want to record the output parameters of the stored procedure
OutParamStr=PlanID, s | WorkDate, s | RegTypeCode, s | RegTypeName, s | DeptCode, s | the 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, the string Key)
{
The StringBuilder temp=new StringBuilder ();
GetPrivateProfileString (Section, Key, "", temp, 2048, iniFilePath);
Return temp. ToString ();
}
CodePudding user response:
No sense it..Ini is a rules of TXT...
Is it not equal division...
CodePudding user response:
That you don't put ini configuration file for bai, if it is a long string to TXT file, or if there is a rule file into XML, and then according to the file. The exist () after the judge read the contents of the file that can be deleted after read the contents of the file or files,CodePudding user response:
Private string ContentValue (string Section, the string Key){
The StringBuilder temp=new StringBuilder (2048);
GetPrivateProfileString (Section, Key, "", temp, 2048, iniFilePath);
Return temp. ToString ();
}
So, today just have run into the problem
CodePudding user response:
StringBuilder default Capacity is not enough, you have to manually initialize big bufferIni file itself no strict limit on the size
Or you can change the json to store configuration
CodePudding user response:
The thing to read and write very slow, if you frequently, speaking, reading and writing, there are so long, do not recommend using this,CodePudding user response:
Length limitation, it is suggested that using other ways to saveCodePudding user response:
I am also just found that there are two days ago the length limit, can try XMLCodePudding user response:
Ini itself didn't heard that there are limits, the estimate is a question of readingWhat is this OutParamStr?
How to read?
CodePudding user response:
Recommended in the ini file, now recommend you use a json or XML than this convenient,CodePudding user response:
Curious about some software log log file do