Changeset 3198 for code/trunk/src/core/ConfigFileManager.cc
- Timestamp:
- Jun 20, 2009, 4:27:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/ConfigFileManager.cc
r3196 r3198 40 40 namespace orxonox 41 41 { 42 const int CONFIG_FILE_MAX_LINELENGHT = 1024;43 42 const char* const DEFAULT_CONFIG_FILE = "default.ini"; 44 43 … … 244 243 if (file.is_open()) 245 244 { 246 247 char linearray[CONFIG_FILE_MAX_LINELENGHT];248 249 245 ConfigFileSection* newsection = 0; 250 246 251 247 while (file.good() && !file.eof()) 252 248 { 253 file.getline(linearray, CONFIG_FILE_MAX_LINELENGHT); 254 255 std::string line = std::string(linearray); 249 std::string line; 250 std::getline(file, line); 256 251 257 252 std::string temp = getStripped(line);
Note: See TracChangeset
for help on using the changeset viewer.