in reply to Script to update a value in text file
And sno & cno will be incremented. Um… CountZero has a more useful, if less literal, reply, really.