I know how to insert CR/LF in a document, but how would I remove them. I have an flat file that I want to remove each CR/LF to create one long string. Can someone steer me in the right direction.
To use an existing file you could use any line reading mechanism (there are several) which returns only the text of the line thereby stripping the CRLF bytes from the input stream. Then all you have to do is write the data in memory to a file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.