Read title from page and write it in a file