Rev 969 | Rev 985 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 969 | Rev 976 | ||
|---|---|---|---|
| Line 35... | Line 35... | ||
| 35 | 35 | ||
| 36 | ifstream file(myFilename.c_str()); |
36 | ifstream file(myFilename.c_str()); |
| 37 | 37 | ||
| 38 | if (!file) |
38 | if (!file) |
| 39 | { |
39 | { |
| 40 | slog << "Could not find settings file: " |
40 | slog << "Could not find settings file: " + myFilename + ".\n"; |
| 41 | return false; |
41 | return false; |
| 42 | } |
42 | } |
| 43 | 43 | ||
| 44 | slog << "Loading settings from " |
44 | slog << "Loading settings from " + filename + ".\n"; |
| 45 | 45 | ||
| 46 | while (!file.eof()) |
46 | while (!file.eof()) |
| 47 | { |
47 | { |
| 48 | string line; |
48 | string line; |
| 49 | getline(file, line); |
49 | getline(file, line); |