I'm having trouble trying to figure out how to get this code to read past the space character and the entire way to a new line character. The code I have now works well when I have many changes to make because I can keep up with the output more efficiently and concatenate everything later. But now my changes are getting to be too minute and this method has become time consuming and tedious. I've used the std::getline() function before without trouble but I can't seem to get it working with this code. The code below is only one example (the first) of what I've tried.
example of my task.
input : REGULATOR #X-XXXX TRIPCOIL MONITOR
to
output : REGULATOR #X-XXXX TRIP COIL MONITOR