writing to a text file - VB 6 Please Help


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: writing to a text file - VB 6 Please Help

  1. #1
    Join Date
    Sep 2005
    Posts
    1

    Exclamation writing to a text file - VB 6 Please Help

    Hi ,

    I'm new this forum . I have a little query and i hope u ppl will help me to overcome that.

    I want to create a text file (.txt) and write my name blah ,blah ....i can do that but my problem is that when i insert text (or variables) it print with double quotes. how can i avoid these double quote to be print

    ex : if its printing as "sameera" "and" "VB"
    i want to make the text file as
    sameera and VB
    (with out the double quotes) - please remember I'm sending these values from varibles in most of the time

    I hope you ppl will give me a way to do this
    thanX for reading


    have a nice day !

    looking forward for a answer

    regards,

    sameera

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    I assume you're using the Write statement to write to the text file. Instead of Write, use Print:

    Print #FileHandle, Variable
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. File Locking a Text File on a Network Drive
    By Miles Tones in forum VB Classic
    Replies: 1
    Last Post: 05-20-2005, 01:57 PM
  2. Replies: 2
    Last Post: 06-21-2003, 12:53 AM
  3. Replies: 8
    Last Post: 03-08-2003, 06:25 PM
  4. Writing contents of a table to a text file???
    By Bryan in forum VB Classic
    Replies: 4
    Last Post: 06-22-2001, 02:04 AM
  5. Replies: 0
    Last Post: 04-17-2000, 01:33 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center