Changeset 1438 for trunk/gsdl/lib


Ignore:
Timestamp:
2000-08-21T22:40:55+12:00 (24 years ago)
Author:
sjboddie
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/fileutil.cpp

    r1437 r1438  
    263263  ifstream file_in (filenamec);
    264264  if (file_in) {
    265     file_in.seekg (256, ios::end);
     265    file_in.seekg (-256, ios::end);
    266266    char c;
    267267    file_in.get(c);
    268268    while (!file_in.eof()) {
    269       if (c == '\n') return_str.clear();
    270       else return_str.push_back (c);
     269      if (c == '\n') {
     270    file_in.get(c);
     271    if (!file_in.eof()) {
     272      return_str.clear();
     273      if (c == '\\') return_str.push_back ('\\');
     274      return_str.push_back (c);
     275    }
     276      } else {
     277    if (c == '\\') return_str.push_back ('\\');
     278    return_str.push_back (c);
     279      }
    271280      file_in.get(c);
    272281    }
    273282    file_in.close();
     283
    274284  }
    275285  delete filenamec;
Note: See TracChangeset for help on using the changeset viewer.