Показать сообщение отдельно
  #8  
Старый 15.06.2011, 21:39
Аватар для SpectraL
SpectraL SpectraL вне форума
Начинающий
 
Регистрация: 19.05.2011
Адрес: Санкт-Петербург
Сообщения: 112
Версия Delphi: 10.1 Berlin
Репутация: 10
По умолчанию

Код:
unit Unit2;

interface

uses
  Classes;

type
  ttest = class(TThread)
  private
    { Private declarations }
  protected
    procedure Execute; override;
  end;

var test: ttest;

implementation

procedure ttest.Execute;
var FileVar:TextFile;
begin
  AssignFile(FileVar, 'D:\Test.txt');
  Rewrite(FileVar);
  CloseFile(FileVar);
end;

initialization
 test := ttest.Create;

end.
Ответить с цитированием