[.net] How to remove whitespace characters when loading text file into a textBox?

Started by
2 comments, last by Machaira 16 years, 2 months ago
I am developing a text comparer application. I need to remove whitespaces character. How to do that? I use Visual C++ 2005 Express Edition and .Net 2.0. Thank you very much.
Advertisement
Something like this:

string newString = Regex.Replace(strIn, "[\s]+", "");

You need to read about Regular Expressions in .NET.
Come on chrisliando, stop asking so many trivial questions like this and learn to use google and the msdn.

Google search on how to remove whitespace
Quote:Original post by gharen2
Come on chrisliando, stop asking so many trivial questions like this and learn to use google and the msdn.

Google search on how to remove whitespace


Agreed!

Former Microsoft XNA and Xbox MVP | Check out my blog for random ramblings on game development

This topic is closed to new replies.

Advertisement