Write " to a text file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tido
    New Member
    • Nov 2008
    • 3

    Write " to a text file

    Hi,

    I'm trying to write the following line into a text file:
    <start>=test this "testthis"

    the problem is that, when I try to write the ", vb thinks I'm ending the line I want to write...
    I was using print:
    Print #iFileNo, "<start>=te st this "testthis""
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Start here,

    if that does not work, come back and stay tuned:

    Comment

    • rpicilli
      New Member
      • Aug 2008
      • 77

      #3
      HI There

      There more than one way to do that.

      Supose you want to display the following message"

      Hello "world".

      You could type the following

      Code:
      dim myStr as string = "Hello """ & "world" & """ & "."
      
      or
      
      dim myStr as string = "Hello " & chr(34) & "world" & chr(34) & "."
      Either case you'll have the same result. By the way there is 3 times "


      I hope this help you

      Rpicilli

      Comment

      Working...