Thanks vart,
i have already done the same thing.... but i am not able to get how to replace the string..... i have used fgets() and strstr()... can u please gimme a simple code for this...