Article View: comp.lang.pascal.delphi.databases
Article #102Re: I have a data problem, but its hard to describe?!?
From: Christo Crause
Date: Mon, 04 May 1998 00:00
Date: Mon, 04 May 1998 00:00
29 lines
1676 bytes
1676 bytes
The WriteLn statement is incorrect for writing to a file. It must be
WriteLn(F, 'Hello');
--
Christo Crause
Thermal Separations Research
University of Stellenbosch
South Africa
In article <6ig52i$78f$1@zingo.tninet.se>, thrust_97@hotmail.com says...
[snip]
>Procedure TMain.ButtonClick(Sender: TObject);
>
>Var F:TextFile
>
>Begin
>
>AssignFile(F,'data.txt');
>Rewrite(F);
>WriteLn('hello');
>CloseFile(F);
>
>End;
>
>My expectations where that the code above would write af file (data.txt)
>with the line 'hello' inside. What am i doing wrong?
Technical Details
Message-ID:
<6ijnsu$12j$2@news.sun.ac.za>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<353edca3.20476635@nntp.lanminds.com> <3544dda1.0@news.one.net> <6ig52i$78f$1@zingo.tninet.se>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffff5,5b5456f40e580607 X-Google-Attributes: gidffff5,public X-Google-Thread: fd817,5b5456f40e580607 X-Google-Attributes: gidfd817,public X-Google-Thread: ff75c,5b5456f40e580607 X-Google-Attributes: gidff75c,public X-Google-Thread: f973d,5b5456f40e580607 X-Google-Attributes: gidf973d,public X-Google-Thread: 105ac8,5b5456f40e580607 X-Google-Attributes: gid105ac8,public X-Google-Thread: 1100ae,5b5456f40e580607 X-Google-Attributes: gid1100ae,public From: ccrause@ing.sun.ac.za (Christo Crause) Subject: Re: I have a data problem, but its hard to describe?!? Date: 1998/05/04 Message-ID: <6ijnsu$12j$2@news.sun.ac.za> X-Deja-AN: 350026238 References: <353edca3.20476635@nntp.lanminds.com> <3544dda1.0@news.one.net> <6ig52i$78f$1@zingo.tninet.se> Mime-Version: 1.0 Content-Type: Text/Plain; charset=US-ASCII Organization: Dept. Chem. Eng. Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.database.desktop,comp.lang.delphi.misc,alt.comp.borland-delphi,alt.comp.lang.borland-delphi,alt.lang.delphi