Cool. Ryte to make it easy for myself iv changed the content of my filex to just 10 line of plain and simple text. Now from what i understand the script (firstline) should take the first argument and insert it into the very top (the first line) of the file named in your second argument. The file must reatin its original name too. Any Ideas...