Hi Thanks for the feedback. The spaces in the string are intended and my format. So I am sure they are spaces.
And moreover this code returned me overflow exception for(int i=1;i<len;i++) { sw1.Write(System.Convert.ToChar(sr.Read())); // stream the interesting char to the new file sr.Read(); // discard the other char } Anymore suggestions 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.