Syntax Error :(

Hi,
Could someone please advise me how I prevent this line of code from producing a syntax error?

I have tried escaping the quote marks inside the string with / - to no avail :frowning:

txt.WriteLine "<link rel="apple-touch-icon-precomposed" href="apple-touch-icon-76x76-precomposed.png">"

Thank you all in advance.

txt.WriteLine = "<link rel=""apple-touch-icon-precomposed"" href=""apple-touch-icon-76x76-precomposed.png"">"
txt.WriteLine "<link rel=""apple-touch-icon-precomposed"" href=""apple-touch-icon-76x76-precomposed.png"">"

To get quotation marks to work within a string, you would need to encode them as a double set of quotation marks. Or in this case you also could change the enclosed quotation marks to single apostrophes.

txt.WriteLine "<link rel='apple-touch-icon-precomposed' href='apple-touch-icon-76x76-precomposed.png'>"

Thank you both - very much appreciated :slight_smile: