Article View: borland.public.cppbuilder.database.ado
Article #1574Re: How to read in fields/records from csv file
From: Vinci Zhang
Date: Fri, 21 May 2004 01:09
Date: Fri, 21 May 2004 01:09
52 lines
2652 bytes
2652 bytes
Dear Vassiliev V. V.:
Thank you very much, It's best suggestion, I will resolve it!
Sincerely
Vinci Zhang
"Viatcheslav V. Vassiliev" <support@oledbdirect.com> д����Ϣ����
:40ac7d4a@newsgroups.borland.com...
> Most DBMS have methods to import data from text files, including csv. This
> should be in DBMS documentation. If you will write what DBMS you are
using,
> may be somebody will help.
>
> If you want to use API, TStringList is the best solution. Then just split
> string on ',' char.
>
> //------------------------------------------
> Regards,
> Vassiliev V. V.
> http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
> ADO.Net
> http://www.oledbdirect.com - The fastest way to access MS SQL Server,
> MS Jet (Access) and Interbase (through OLEDB)
>
> "Vinci Zhang" <zhangzhihao_sz3c@hotmail.com> ������?�������� ?��������
> ��������? news:40ac612f@newsgroups.borland.com...
> > Dear All
> > I have a telephone record file(telrecord.csv,csv file), including
> call
> > records:
> > No, CalledNo, CallTime
> > 1, 125676886, 00:00:13
> > 2, 786896865, 00:05:09
> > 3, 689787755, 00:02:01
> > I want to know how I can read in the records/fields from the csv by
> > programming and transfer text file to database records:
> > 1 125676886 00:00:13
> > 2 786896865 00:05:09
> > 3 689787755 00:02:01
> > How can I do it by API function or other ways, thanks!
> >
> > Sincerely
> >
> > Vinci Zhang
> >
> >
> >
> >
>
>
Technical Details
Message-ID:
<40ad54ec@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.wirehub.nl!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40ac612f@newsgroups.borland.com> <40ac7d4a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,b302e1879dadbda6 X-Google-Attributes: gid10698b,public Reply-To: "Vinci Zhang" <zhangzhihao_sz3c@hotmail.com> From: "Vinci Zhang" <zhangzhihao_sz3c@hotmail.com> Newsgroups: borland.public.cppbuilder.database.ado,borland.public.cppbuilder.database.dbexpress References: <40ac612f@newsgroups.borland.com> <40ac7d4a@newsgroups.borland.com> Subject: Re: How to read in fields/records from csv file Date: Fri, 21 May 2004 09:09:41 +0800 Lines: 54 X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 211.90.160.162 Message-ID: <40ad54ec@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1085101292 211.90.160.162 (20 May 2004 18:01:32 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.wirehub.nl!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail