string couplet1 = "Half a league, half a league,n"
+ "Half a league onward,";
string couplet2 = @"All in the valley of Death
Rode the six hundred.";

| عنوان | پاسخ | بازدید | توسط |
| |
0 | 3000 | admin |
| |
0 | 1856 | admin |
| |
0 | 3906 | admin |
| |
0 | 2223 | admin |
| |
0 | 1998 | admin |
string couplet1 = "Half a league, half a league,n"
+ "Half a league onward,";
string couplet2 = @"All in the valley of Death
Rode the six hundred.";
;
procedure SaveFile(const FileName: TFileName;
const content: string);
begin
with TFileStream.Create(FileName, fmCreate) do
try
Write(Pointer(content)^, Length(content)); finally
Free;
end;
end;
uses SysUtils, Classes;
function LoadFile(const FileName: TFileName): string;
begin
with TStringList.Create do
try
LoadFromFile(FileName);
Result := Text;
finally
Free;
end;
end;