
15.06.2011, 21:39
|
 |
Начинающий
|
|
Регистрация: 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.
|