Results 1 to 2 of 2

Thread: Using Write

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Location
    Tucson, AZ, USA
    Posts
    95
    Is there a way using the write command to add text to file without it adding the quotes.

    My Sample code would be like this:

    Dim test1, test2, test3 As String
    test1 = "Hello"
    test2 = "world"
    test3 = "Goodbye"
    Open App.Path & "\CrossRef.htm" For Output As #1
    Write #1, test1, test2, test3
    Close #1

    And the output looks like this
    "Hello","world","Cool"

    Is there any good info out there on writing to text files, that might help me with this. Thank you.


  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    try PRINT # instead...

    Your write statment would look like:


    PRINT # 1, test1 & test2 & test3

    Edited by JHausmann on 03-16-2000 at 01:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width