strip newlines from INI lines

This commit is contained in:
Glenn Maynard
2003-02-14 22:43:43 +00:00
parent b40bd514d7
commit 4749c0f9bb
+2 -1
View File
@@ -51,7 +51,6 @@ bool IniFile::ReadFile()
CString line;
while (getline(file, line))
{
if(line.size() >= 3 &&
line[0] == '\xef' &&
line[1] == '\xbb' &&
@@ -65,6 +64,8 @@ bool IniFile::ReadFile()
if (line == "")
continue;
StripCrnl(line);
if (line.substr(0, 2) == "//" || line.substr(0) == "#")
continue; /* comment */