I have a string which contains some newline character in the end. I am wondering how I could remove the new char using c++. The new line can be \r\n or \n
            Asked
            
        
        
            Active
            
        
            Viewed 174 times
        
    3
            
            
        - 
                    dup? http://stackoverflow.com/questions/216823/whats-the-best-way-to-trim-stdstring – GuLearn Aug 19 '14 at 13:32
