add a function to prepend text to a file