English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

example:

original text file: smith Joe
after script runs: Joe smith

2007-03-29 06:48:32 · 2 answers · asked by Chris 1 in Computers & Internet Programming & Design

2 answers

Here is how to do it In C#:

string original = "Joe smith";
char[] space ={ ' ' };
string[] result = original.Split(space);
string output = result[1] + " " + result[0];

For more tips, visit http://www.mycsharpcorner.com

2007-03-29 07:01:59 · answer #1 · answered by Anonymous · 0 0

Hi. Unless you have a ton of text to modify, use 'Replace' (Ctrl H) then just hit F3 until your done. Or, if you want, use 'Replace all'.

2007-03-29 13:52:54 · answer #2 · answered by Cirric 7 · 0 1

fedest.com, questions and answers