If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Writing to Text File

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-11-04, 07:21
jigar_1676 jigar_1676 is offline
Registered User
 
Join Date: Feb 2004
Location: India
Posts: 22
Writing to Text File

I am opening an recordset from text file and addding recors in it. When I save the changes, it is written with "" in the text file, but I want it without double quotes. Can you please help me out in the same.
Here is the code

Dim rs As New ADODB.Recordset
Dim con As New ADODB.Connection

con.Open "Driver={Microsoft Text Driver (*.txt; *.csv)};" & _
"DBQ=" & App.Path & ";" & _
"Extended Properties=""text;HDR=YES;FMT=TabDelimted;"""

rs.Open "SELECT * FROM [import.txt]", con, adOpenKeyset, adLockBatchOptimistic
rs.AddNew
rs.Fields(0) = "aa"
rs.AddNew
rs.Fields(0) = "aaa"
rs.UpdateBatch

Now if I open the text file I get
"aa"
"aaa"
instead of this I need
aa
aaa

Can you please help me out?
__________________
Regards,
Jigar Bhavsar
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On