Article View: borland.public.cppbuilder.internet.socket
Article #5472Re: I need some suggestions and oppinion for sending data
From: Vladimir Stefanovic
Date: Sun, 08 Aug 2004 11:47
Date: Sun, 08 Aug 2004 11:47
17 lines
1523 bytes
1523 bytes
> AnsiString s=AnsiString('1')+rec_str;
> fwrite(s.c_str(),sizeof(char),len,File);
>
> that's 'couse on the other side of the transmission u'll get data with
> only one read.. more faster...
Yes, that could be much more efficient than the soulution I presented
in previous post. I'm now considering the saving in this string format...
" %s \t %s \t %s \t %s \r\n " (without spaces)
... I think this could be used in both fprintf() & fscanf() for
reading and writing.
Best regards,
Vladimir Stefanovic
Technical Details
Message-ID:
<411612cc@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41152fcb@newsgroups.borland.com> <41158ca0@newsgroups.borland.com> <4115c231@newsgroups.borland.com> <4115f72f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9e55e8bf383b51eb X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Vladimir Stefanovic" <spam@not.needed> Newsgroups: borland.public.cppbuilder.internet.socket References: <41152fcb@newsgroups.borland.com> <41158ca0@newsgroups.borland.com> <4115c231@newsgroups.borland.com> <4115f72f$1@newsgroups.borland.com> Subject: Re: I need some suggestions and oppinion for sending data Date: Sun, 8 Aug 2004 13:47:18 +0200 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: 213.137.116.197 Message-ID: <411612cc@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1091965644 213.137.116.197 (8 Aug 2004 04:47:24 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail