title: how to write a tcl script to delete last line of a file
body: <p>I have to delete the last line of file in using tcl script. I know the content so content replacement is also ok. But my content is  which has to be replaced by a space or newline character or have to deleted. And my job is in a loop.</p>
  
  <p>Please let me know which is the efficient way, capturing the entire file content each time in loop and replace that string is better or deleting simply the last line.</p>
  
  <p>Please give some script code because I am very new to tcl.</p>