1.

Solve : Remove CR LF from standard I/O, with exception.?

Answer»

Can SOMEBODY write a simple program for me?
It will use just standard I/O, so no need to deal with file names.
As characters are read in, they will be echoed unless they are CR and LF. That is, the Carriage return and Line Feed.

An exception should be if a double CR LF pair is found. That would be an end of paragraph, which I want to keep.

I will use this to fix text fails that have UNWANTED CR LF in them. Some text files I have have unwanted word wrap and. So it is very annoying to have to reformat the text by hand to fit the width of the page.

Or, is there an easy way to fix this with and standard text editor?

Any suggestions?
Would something LIKE this help? http://www.techsupportalert.com/remove-unwanted-formatting-from-text.htmThank you! Whee did yo find that?

Quote

If you've copied text from a webpage or a PDF file to an email, you've encountered the PROBLEM associated with formatting being copied along with the text. The result can look very strange indeed, with broken lines and odd fonts.
That is the problem I have. I copy from PDF to the clipboard and lines are broken into a locum that was used in the PDF document. It seems somebody else already solved this problem and a few others that you get when trying to copy and paste from PDF.

I am going to try this now. After lunch. FIRST things first. I just Google searched for "Remove Formatting From File" https://www.google.com/?gws_rd=ssl#q=remove+formatting+from+file and its 10th one down on the search that looked like what you needed maybe. Hope this helps

I too have gone crazy trying to find something on Google... post here for help and others point me back to a Google reference that is the solution. Its all in the search criteria key words! Right! This is a great forum!


Discussion

No Comment Found