reading and writing a file in VB


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: reading and writing a file in VB

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    5

    reading and writing a file in VB

    Has anyone had any experience reading and writing a file in VB?

    When I write a string variable to a file it puts quotes around the line.

    THen when I read it back, the quotes are there. How do I strip the quotes or make it so that the quotation marks are not there when I write to the file?

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Use Print # instead of Write # to write the file without quotes. Or, use the Replace function to strip the quotes after reading the data.
    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. Reading and Writing to a file
    By Fergy25 in forum Java
    Replies: 1
    Last Post: 11-14-2005, 04:28 PM
  2. writing to a text file - VB 6 Please Help
    By sameera in forum VB Classic
    Replies: 1
    Last Post: 09-16-2005, 05:42 AM
  3. Reading and writing lines from a text file...
    By Jenks in forum VB Classic
    Replies: 6
    Last Post: 05-24-2005, 02:22 PM
  4. Replies: 1
    Last Post: 04-22-2002, 05:59 PM
  5. NullPointerException when reading text file
    By Andrew McLellan in forum Java
    Replies: 3
    Last Post: 05-09-2001, 05:34 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