4 Aug
2006
4 Aug
'06
8:51 a.m.
Tommy Li wrote:
Great. Thanks a ton. The problem I was having was that I was using getline to read from stdin, which stripped the newlines (duh). Changing it to while(!cin.eof()) input.append(1, cin.get()); fixed it.
By the way, do you have a better way of reading the entire stream, including newlines, into a string?
If you grep the Boost.Regex examples for "file" you'll find some possible examples. John.