how to save data into free format file or txt file

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: how to save data into free format file or txt file

  1. #1
    Join Date
    Feb 2008

    how to save data into free format file or txt file

    hi....i'm quite new to vb. just wanna ask 1 question here. how can we save data from a table of an access file into a text file or what ever format it is, that will look like these....

    ordinary text file saved from a report ( 3 columns )
    name id gender
    john 67435 male

    what i am looking for will look like these

    john67435male <--- without spaces in between

    i've tried using datareport in VB but i still cannot do it.maybe there is another way.

    if someone out there have a knowledge on this, please share it with us. thank you.

  2. #2
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    Welcome to DevX

    Do you have a query written that will retrieve the data for you?

  3. #3
    Join Date
    Oct 2005
    use :
    Open FileName for OutPut as #1
    print, #1, "someStringsOrMaybeVariable"
    close #1

    after print #1, (..) you can put strings, maybe a variable : print #1, varname ... maybe for multilines you need :
    print #1, strVar & vbcrlf
    print #1, strTwo & vbcrlf
    close #1 ...
    hope this can help
    Programmer&Cracker CS

Similar Threads

  1. Why I can't save data in data base?
    By Kurt in forum Java
    Replies: 7
    Last Post: 10-08-2006, 08:59 AM
  2. Replies: 0
    Last Post: 04-07-2006, 01:30 PM
  3. Auto Save or Not?
    By Andrew Merisanu in forum Architecture and Design
    Replies: 13
    Last Post: 02-18-2002, 02:51 PM
  4. Ado using Data Link File Question
    By KENHOW in forum VB Classic
    Replies: 0
    Last Post: 07-13-2001, 04:02 PM
  5. Replies: 5
    Last Post: 08-25-2000, 09:51 AM

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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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