procedure TForm1.Button1Click(Sender: TObject);
var
F: File;
Dir: string;
S: UTF8String;
begin
Dir := ExtractFilePath(ParamStr(0));
AssignFile(F, Dir + 'template.txt');
Reset(F, 1);
SetLength(S, FileSize(F));
BlockRead(F, S[1], Length(S));
CloseFile(F);
S := StringReplace(S, '{{ edit }}', UTF8Encode(Edit1.Text), [rfReplaceAll]);
AssignFile(F, Dir + 'result.txt');
Rewrite(F, 1);
BlockWrite(F, S[1], Length(S));
CloseFile(F);
end;
# hdparm -Tt /dev/sda
/dev/sda:
Timing cached reads: 11246 MB in 2.00 seconds = 5630.65 MB/sec
Timing buffered disk reads: 748 MB in 3.00 seconds = 249.19 MB/sec
time stat cagllwt32m0.jpg
File: `cagllwt32m0.jpg'
Size: 9807 Blocks: 24 IO Block: 4096 regular file
Device: 802h/2050d Inode: 7733768 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/xxx) Gid: ( 1001/xxx)
Access: 2013-02-12 17:30:28.000000000 +0400
Modify: 2013-02-12 17:30:28.000000000 +0400
Change: 2013-02-12 17:30:32.000000000 +0400
real 0m0.002s
user 0m0.000s
sys 0m0.000s
Например, почему кто-то использует:
iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
А кто-то просто:
iptables -A INPUT -p tcp --dport 80 -j ACCEPT