Hello Jim, hello all, Thanks very much for the inputs, I used the code and it solved my problem.... special thanks to Jim Holtman for the code. Regards, karthick -- View this message in context: http://r.789695.n4.nabble.com/Parsing-txt-file-tp3035749p3036284.html Sent from the R help mailing list archive at Nabble.com.