アプリケーションの起動時に複数の *.txt ファイルを作成するための適切な方法は何でしょう。つまり、作成されていない場合は存在するかどうかを確認します。約 10 個のテキスト ファイルを作成する必要があります。すべてのファイルに対して次のようにする必要がありますか?
var
MyFile: textfile;
ApplicationPath: string;
begin
ApplicationPath := ExtractFileDir(Application.ExeName);
if not FileExists(ApplicationPath + '\a1.txt') then
begin
AssignFile(MyFile, (ApplicationPath + '\a1.txt'));
Rewrite(MyFile);
Close(MyFile);
end
else
Abort;
end;