Archived

This topic is now archived and is closed to further replies.

line breaks in various OSes

This topic is 5600 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

If I wanted to remove the line breaks in a std::string (that was created from a std::ifstream from a text file), is simply searching through the string and removing all ''\n'' and ''\r'' characters sufficient for most/all OSes? Primarily curious about MacOSX, Win32 and Linux. It does appear to be sufficient for Linux.

Share this post


Link to post
Share on other sites