There is an easier way of emptying a file which is much simplier than the solutions that I have seen so far. Just use: touch <filename> where <filename> is the name of the file. Note that the time/date stamp on the file will be altered. Gary Hong