Yessss I have it done......except for one little thing...please help :)

Posted by Jason on April 30, 2003

In Reply to: Re: What ...? posted by webmaster Guido on April 29, 2003

I think I have it right is this it?

program textfile;

{$APPTYPE CONSOLE}

uses
SysUtils;

const
FileName = 'numbers.txt';
var
f : textfile;
i : integer;
begin
assignfile (f, filename);
rewrite (f);
for i := (12, 14, 2, 78, 3) do
writeln (f)
closefile (f);
end.

I think I am right on the money with this one.......but I can't get it to write the numbers (12, 14, 2, 78, 3) to the textfile......... can you help me with this please?


Related Articles and Replies:


[ DelphiLand Discussion Forum ]
Compiling Console Applications
Learn Pascal with simple Delphi Console Applications