Article View: comp.lang.pascal.borland
Article #682Re: Writing to text Files
From: Pedt Scragg
Date: Sat, 05 Jun 1999 00:00
Date: Sat, 05 Jun 1999 00:00
22 lines
1340 bytes
1340 bytes
Ali used chalk and slate for >Could some one show me a quick little,simple source code to writing to text >files, i've tries to write to a text file but i get an error: File not open >for output (run time error, i think error no: 105). THis is how i try to >write to text files: >var > f:text; > c:char; >begin > read(c); > assign(f,'fdsat.txt'); > reset(f); Change to ReWrite(f) to start a new file Change to Append(f) to append to existing data > Write(f,c) >End. > -- Pedt If smoking is so bad for you, how come it cures kippers?!
Technical Details
Message-ID:
<8D1TrCAPuRW3Yw6d@pedt.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7jaola$r31$1@news5.svr.pol.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110467,863a3507bf12c2da X-Google-Attributes: gid110467,public X-Google-Thread: 111659,863a3507bf12c2da X-Google-Attributes: gid111659,public From: Pedt Scragg <newsmaster@pedt.demon.co.uk> Subject: Re: Writing to text Files Date: 1999/06/05 Message-ID: <8D1TrCAPuRW3Yw6d@pedt.demon.co.uk> X-Deja-AN: 486005682 X-NNTP-Posting-Host: pedt.demon.co.uk:194.222.191.220 References: <7jaola$r31$1@news5.svr.pol.co.uk> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 928587280 nnrp-03:20233 NO-IDENT pedt.demon.co.uk:194.222.191.220 Organization: Signpost Design MIME-Version: 1.0 Reply-To: Pedt Scragg <signpost@pedt.demon.co.uk> Newsgroups: comp.lang.pascal.borland,fido.ger.pascal