
20.01.2010, 14:52
|
Прохожий
|
|
Регистрация: 03.12.2009
Сообщения: 19
Репутация: 10
|
|
Всем спасибо, сделал.
Если кому интересно, вот правильный код программы:
Код:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
t: TStream;
i:integer;
m: array[1..10] of double;
f: textfile;
{ Name_g : array[1..255,1..255] of string; }
implementation
{$R *.dfm}
begin
t := TMemoryStream.Create;
for i:= 1 to 10 do
m[i]:= (i)*(3.475*2.875);
begin
AssignFIle(F,'D:\тест\file.txt');
Rewrite(f);
for i := 1 to 10 do begin
Writeln(f, m[i],';');
end;
CloseFile(f);
end;
t.Free;
end.
|