Hi,<BR><BR>I have a string in a text file which looks like this:<BR>kill \processid<BR>I have to parse this whole string in order to capture the process id.<BR>So what I did is:<BR>while (line != null)<BR>{<BR> string [] line1 = line.Split(new Char []{&#039;\&#039;});<BR> using (StreamWriter sw = new StreamWriter("D:/Inetpub/wwwroot/AppliedProject/HCTool/scripts/line1.txt")) <BR> {<BR> // Add some text to the file.<BR> sw.WriteLine(line1[1]);<BR> sw.WriteLine(DateTime.Now);<BR> }<BR>}<BR><BR><BR>But the problem is :<BR>line1[1] is empty!!!<BR>Why is this empty???<BR>Please let me know how I can capture the process id..<BR><BR>Thanks,<BR>