Do find and replace Carriage returns in txt

I have a txt which has a bunch of extra carriage returns.  Below is an example of part of it. How can I get rid of the blank rows?

"4264294999330246","1","0600355","06",20060208,20060209,"02","","4914 PEPYS LN APT A","284032839","000002494DFDF","NC","NEW FDFD","CsFE","JADFD","HDFDFDEIN","AKA DFDF","","","","WILMINGTON","NC","S","DFD","DFD

"4264294999330246","1","0600355","06",20060208,20060209,"02","","4914 PEPYS LN APT A","284032839","000002494","WILSON","NC","NEW HADFDR","DFD","JDFD","HDFDF","AKA DFD","","","","WILMINGTON","NC","S","DFDPC","DFDSR","5725 OLDFFDR DR STE

"4264294999330246","1","0600355","06",20060208,20060209,"02","","4914 PEPYS LN APT A","284032839","SS","NEW "4264294999330246","1","0600355","06",20060208,20060209,"02","","SSLN APT A","284032839","SSNEW GSRYS "4264294999330246","1","0600355","06",20060208,20060209,"02","","4914 PEPYS LN APT A","284032839","000002494","SSNC","NEW HASSVER","CASSE","JASSNESS","SS","","","","SSINGTON","NC","S","SSPC","SS
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Depending on the language you are using for this, you would want to look for Chr(13) and Chr(10) and delete them. Chr(13) and Chr(10) are carriage return and line feed.
Are you wanting to do this in ASP/Vbscript?  That's what I'm guessing from your other questions.  I'm pretty sure you could just use the Replace function, like so:


You might need to do:

Replace(YourString,"\r\n","") if these are Windows carriage returns.

If you still end up with extra white space that you want completely removed:

Replace(YourString," ","")

Hope that helps!
Here's what I use:

If the string is contained in varString:

varString = Replace(varString,vbCrLf,"")

vbCrLf = visual basic Carriage return Line feed

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Glad I cold help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.