🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3770

Re: printing all fiels in a table to a text file

#3770
From: J.Steinecker
Date: Thu, 20 Jun 2002 12:03
42 lines
1583 bytes
Hi,

you can do something like

FILE *fp = fopen( "sample.txt", "wt" );
if( fp )
{
    fprintf( fp, "%s\n", DBEdit1->Text.c_str() );
    fclose(fp);
}

HTH
Juergen

"G�khan �ATALKAYA" <gcatalkaya@ttnet.net.tr> schrieb im Newsbeitrag
news:3d1077b4_1@dnews...
> Hi;
>
> I want to print a field of a table in a text file by just a click of a
> button.
> code like that
>
> DBEdit1 contains double data types.
>
> DBEdit1->Text
>
> fprintf(sample.txt,"%s\n",DBEdit1->Text)
>
> But this approach does not work
>
> Are there any alternatives?
>
>
> --
> G�khan �ATALKAYA
>
> Oyakbank A.�.
> Halit Ziya �b.
> Smard Card Dep.
> System Admin.
>
>
Technical Details
Message-ID: <3d11c328_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!yellow.newsread.com!netaxs.com!newsread.com!netnews.com!howland.erols.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3d1077b4_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,9c056b608e55d4a7
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-06-20 05:01:06 PST
From: "J.Steinecker" <jsteinecker@gmx.de>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3d1077b4_1@dnews>
Subject: Re: printing all fiels in a table to a text file
Date: Thu, 20 Jun 2002 14:03:01 +0200
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 217.82.95.208
Message-ID: <3d11c328_2@dnews>
X-Trace: dnews 1024574248 217.82.95.208 (20 Jun 2002 04:57:28 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!yellow.newsread.com!netaxs.com!newsread.com!netnews.com!howland.erols.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews