Go to the original post:Append a string to the beginning of a file

Original post by