Re: [fpc-pascal] HOW TO, PROBLEM read stdin (linux) ??
program yourprogram; {$mode objfpc}{$H+} uses Classes, SysUtils; var st: text; s: string; begin assign(st,''); reset(st); while not eof(st) do begin // --- iterate while not en of file readln(st,s); //<<< read only a line writeln(s); end; close(st); // <--- end. -- Att, Wanderlan Santos dos Anjos On Nov 24, 2007 8:15 AM, TOUZEAU DAVID <[EMAIL PROTECTED]> wrote: > Dear > > What is the best way to read into a memory datas from this command. > > > "/bin/myprogram > > my test program read only the first line from stdline. > What i miss ??? > > > program myprogram; > > {$mode objfpc}{$H+} > > uses > Classes, SysUtils; > var > st: text; > s: string; > begin > assign(st,''); > reset(st); > readln(st,s); > > writeln(s) > > end. > > > > -- > David Touzeau -- Linux Ubuntu 7.04 feisty > FreePascal-Lazarus,perl,delphi,php artica for postfix management console > (http://www.artica.fr) icq:160018849 > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to send stdout pipe to a process ?
Dear, Yes. Output already is the default and can be ommited. -- Att, Wanderlan Santos dos Anjos ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Query
FPC List: I am a Programmer of a few languages. I can't seem to think of much to write. I'm wondering if others, could tell me what you have written..to give me a few ideas..so I may write more osftware...and learn to be a better developer? -- *-With the power to be evil, comes the responsibility to be good!-* ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] IPC/SHMGET and Multiple Variables
> I want to use IPC Shared Memory mecanism to enable communication between > Linux processes. I followed doc example > (http://community.freepascal.org:1/docs-html/rtl/ipc/shmctl) which > works fine. > However I'm unable to find how the handle multiple variables (or may be > an array). Stuff everything into a (static, no ansistrings!) record, and then make sure that the constant segszie of the example is as large as the record. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Delphi + FPC + HTTP + Magic = ?
How to target linux, bsd, and cPanel with Delphi on Windows.. using magic.. http://z505.com/videos/d5/linux-delphi-webapp.htm Mirror: http://iknow.z505.com/vid/linux-delphi-webapp.htm Maybe a friend/competitor to the CrossFPC project. But with more of a focus on server, web development, and console apps rather than desktop kylix gui style programs. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] FCL-DB/SQLDB docs started
Leonardo and I have been working on structuring together some notes and docs for fcl-db and sqldb. I am not as experienced with sqldb yet but as I have more time there will be more notes added. http://z505.com/cgi-bin/powtils/docs/1.6/idx.cgi?file=fcldbnotes An interface view is also available: http://z505.com/cgi-bin/powtils/docs/1.6/idx.cgi?file=index-4&unit=sqldb ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FCL-DB/SQLDB docs started
L wrote: Leonardo and I have been working on structuring together some notes and docs for fcl-db and sqldb. I am not as experienced with sqldb yet but as I have more time there will be more notes added. http://z505.com/cgi-bin/powtils/docs/1.6/idx.cgi?file=fcldbnotes An interface view is also available: http://z505.com/cgi-bin/powtils/docs/1.6/idx.cgi?file=index-4&unit=sqldb ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Hi L, Good to see anyone working on documenting anything, especially the db stuff, but why not add to what is in the wiki, rather than yet another documentation site ? cheers, John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FCL-DB/SQLDB docs started
Hi Lars, > > http://z505.com/cgi-bin/powtils/docs/1.6/idx.cgi?file=fcldbnotes > Where do I get a Doc ID to edit those pages? There are loads of spelling and grammar mistakes I would like to fix. Oh btw, 'Remember' is still spelled incorrectly in that page I mentioned before. :) Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal