Results 1 to 5 of 5

Thread: writing to a file

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2003
    Location
    Christchurch, New Zealand
    Posts
    28

    writing to a file

    whenever i write to a file in vb it always puts the text into "quotes" and then writes it. how can i stop this?

  2. #2
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Use Put, dim the variable as a string.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 2003
    Location
    Christchurch, New Zealand
    Posts
    28

    eh?

    what do u mean? i have the data i want to write to a file in a variable and im going:

    open "c:\blahblah.txt" for output as #1
    write #1, info
    close#1

    and that writes the info to the file except it puts it inside quotes.

    can u please give me an example of the puts thing?

    thanks.

  4. #4
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Put #1, , info

  5. #5
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Or use Print instead of Write


    Has someone helped you? Then you can Rate their helpful post.

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