how about doing a replace on 4 spaces with some character that wouldn't be in the text. Then do a replace on all spaces with no character. Then do a replace on that first charater with a space.
-----Original Message----- From: Nischal Chitta [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 1:35 PM To: [EMAIL PROTECTED] Subject: [DOTNET] Reading a File Hi All This might be a very easy question for you guys. I am newbie so please excuse me. I have a .txt file which contains characters like the following: N I S C H A L B I L L G A T E S S T E V E B A L M E R Note each space between each letter of each word and later 4 spaces between each word. Now I have to remove the spaces between the letters and then remove 1/2 the spaces between the words. To be precise I want the following output. NISCHAL BILLGATES STEVEBALMER Any help greatly appreciated. Thanks Nischal You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.