| 33 | } |
| 34 | |
| 35 | static string readUntil(istream &f, int c) |
| 36 | { |
| 37 | stringstream ret; |
| 38 | int c2; |
| 39 | c2=f.get(); |
| 40 | // c2=fgetc(f); |
| 41 | // while(c2!=c && c2!=EOF) |
| 42 | while(c2!=c && !f.eof()) |
| 43 | { |
| 44 | ret<<char(c2); |
| 45 | //c2=fgetc(f); |
| 46 | c2=f.get(); |
| 47 | } |
| 48 | return ret.str(); |
| 49 | } |
| 50 | |
| 51 | static list<int> readIntList(istream &s) |
| 52 | { |