MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / UpdateFile

Method UpdateFile

sourcecommon/inif.cpp:97–115  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

95}
96//---------------------------------------------------------------------------
97bool TMYIniFile::UpdateFile(void)
98{
99 // ������� ���� ��� ������
100 if( ! Open(FileName.c_str(), GENERIC_WRITE, FILE_SHARE_READ, CREATE_ALWAYS,
101 FILE_ATTRIBUTE_NORMAL) )
102 {
103 IniError = 1;
104 bAnyError = true;
105 return false;
106 }
107
108 for(int i=0; i<list->Count; i++)
109 TFile::WriteString(AnsiString(list->Strings[i]).c_str());
110 Close();
111 IniError = 0;
112 bAnyError = false;
113 bChange = false;
114 return true;
115}
116//---------------------------------------------------------------------------
117bool TMYIniFile::IsSectionName(String Section)
118{

Callers 1

SaveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected