Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 9, 2009, 1:31:32 PM (15 years ago)
Author:
rgrieder
Message:

Replaced all the std::istream::getline(const char*) calls with std::getline(std::ostream, std::string).
This gets rid of these nasty MAX_BUFFER = 1024 (or however long you want to make it) limitations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/netp4/src/core/LuaBind.cc

    r3068 r3123  
    9797    }
    9898
    99     char line[1024*32];
    10099    std::string levelString = "";
    101100
    102101    while (file.good() && !file.eof())
    103102    {
    104       file.getline(line, 1024*32);
     103      std::string line;
     104      std::getline(file, line);
    105105      levelString += line;
    106106      levelString += "\n";
Note: See TracChangeset for help on using the changeset viewer.