if g_sWorldFile Len string ifstream in g_sWorldFile GetCharArray if in

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
if ( g_sWorldFile.Len() != 0 ) {
string s;
ifstream in( g_sWorldFile.GetCharArray() );
if ( !in ) return false;
while ( !in.eof() ) {
std::getline(in, s);
if ( (s[0] != '/' && s.find("PHIS") != string::npos ) || s == "" )
continue;
out << s << "\n";
}
in.close();
}