write quotes to a file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jcor
    New Member
    • Sep 2007
    • 63

    write quotes to a file

    Hi, I'm kinda a newbie in VB.

    A need to create a file ( a playlist .asx) And it has several tags

    the file is something like this:

    [HTML]<ASX VERSION = "3.0" >
    <ENTRY>
    <TITLE> My title</TITLE>
    <REF HREF = "path\to\my\vid eo.wmv" />
    </ENTRY>
    </ASX>[/HTML]

    I have this piece of code:

    Code:
    My.Computer.FileSystem.WriteAllText("c:\temp\filename.asx", "<ASX VERSION = "3.0" ", false)
    The problem is that I don't know how to "say" to VB to write the "quotes"!!
    It's messign everything because the compiler reads the quote as the end of the string,

    How can I say this is to print and not part of my code?

    Thanks for any help,

    João
  • jcor
    New Member
    • Sep 2007
    • 63

    #2
    ok, I got it,

    I must write it "double" in my code
    like this: ""3.0""

    Thanks anyway

    joão

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Glad to see you got it. Thanks for letting us know.

      There are other ways too, but that's almost certainly the simplest.

      Comment

      Working...