Results 1 to 3 of 3

Thread: Write Line (XP)

  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Write Line (XP)

    I am having an issue writing a header line to a text file. The quote marks are appearing in the line of text written to the file and should not be appearing there.

    oHeader = "0Unit,Period,Year,Dept-Account,Measure,Product,Affiliate,Total Amt"

    TheFile = "C:TempMyFile.Txt"

    Open TheFile For Output As #1
    Write #1, oHeader
    Close #1

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Write Line (XP)

    Use Print# instead of Write#.

  3. #3
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Write Line (XP)

    Thank you.

    John

Posting Permissions

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