🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.pascal
Article #92452

Re: eoln w FP

#92452
From: Solaris
Date: Mon, 04 Feb 2008 08:47
46 lines
1676 bytes
Dnia Sun, 3 Feb 2008 23:34:46 +0100, jakże pięknego
"Andrzej" <series@na-box43.pl> wystukał co zawarte poniżej:

: Witam grupowiczów
: 
: Mam zonka :(
:   Program przed ka¿d± linijk± tekstu (ze zwyk³ego pliku txt) ma wstawiæ !

#v+
var
    f1, f2:     Text;
    c:          Char;
   
  
begin
    assign(f1, 'dupa');
    assign(f2, 'dupa2');
    
    reset(f1);
    rewrite(f2);
    
    write(f2, #33);
    
    while not(eof(f1)) do
    begin
        read(f1, c);
        
        if not(c in [pred(#11)]) then
            write(f2, c);
        
        if (eoln(f1)) then
            write(f2, succ(#9)+#33);
    end;
    
    close(f1);
    close(f2);
end.
#v-

Podziękuj przynajmiej.

-- 
Home: admin.idns.pl (admin.thief.pl)
Linux registered user: 408584
Contact: GG#44450, solaris#idns.pl
19:16:28 -!- Platyna Erroneous Nickname 
Technical Details
Message-ID: <20080204094748.dbe37766.solaris@be.inspired>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <fo5fts$7qb$1@nemesis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Solaris <solaris@be.inspired>
Newsgroups: pl.comp.lang.pascal
Subject: Re: eoln w FP
Date: Mon, 4 Feb 2008 09:47:48 +0100
Organization: Szeregi milicji
Lines: 46
Message-ID: <20080204094748.dbe37766.solaris@be.inspired>
References: <fo5fts$7qb$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: azc37.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: nemesis.news.tpi.pl 1202115259 13673 83.27.140.37 (4 Feb 2008 08:54:19 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Mon, 4 Feb 2008 08:54:19 +0000 (UTC)
X-Newsreader: Sylpheed 2.4.7 (GTK+ 2.10.13; i686-pc-linux-gnu)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit