| ■無料ホームページスペース■ |
|
astファイルは、 [AA][名前] AA AA [AA][名前] AA AA ・・・という形式になっているファイルです。 これを作成する例を示します。
//Create_ast_file
var
SL : TStringList;
FName : String;
i, j : integer;
begin
SL := TStringList.Create;
try
//10ページ作る
for i:= 1 to 10 do
begin
//名前
SL.Add('[AA][Page : ' +IntToStr(i) +']')
//本文 ( 10行 )
for j:= 1 to 10 do
SL.Add( IntToStr(i) +' - ' +IntToStr(j) );
end;
FName:= AppPath +'test_astFile.ast';
SL.SaveToFile( FName );
FileOpenA( FName );
finally
SL.Free;
end;
end.
|
|
■お
得情報盛りだくさん ■高性能レンタルサーバ |