-
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.
-
Welcome to DevX 
Do you have a query written that will retrieve the data for you?
-
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
Similar Threads
-
Replies: 7
Last Post: 10-08-2006, 08:59 AM
-
By bond_ankur in forum Java
Replies: 0
Last Post: 04-07-2006, 01:30 PM
-
By Andrew Merisanu in forum Architecture and Design
Replies: 13
Last Post: 02-18-2002, 02:51 PM
-
By KENHOW in forum VB Classic
Replies: 0
Last Post: 07-13-2001, 04:02 PM
-
By DH in forum VB Classic
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
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|