Append function implemented by Pucong. Appending a url variable to a file is working. Appending a url to a file is working too:)