{"id":14,"date":"2007-03-02T15:27:06","date_gmt":"2007-03-02T12:27:06","guid":{"rendered":"http:\/\/pblog.ru\/?p=14"},"modified":"2008-09-09T12:24:44","modified_gmt":"2008-09-09T09:24:44","slug":"%d1%84%d0%b0%d0%b9%d0%bb%d1%8b","status":"publish","type":"post","link":"http:\/\/pblog.ru\/?p=14","title":{"rendered":"\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438"},"content":{"rendered":"<p>\u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u044f \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u044e \u044d\u0442\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<pre><code>procedure TForm1.Button1Click(Sender: TObject);<br \/>\nbegin<br \/>\nCopyFile('\u041e\u0442\u043a\u0443\u0434\u0430\\\u0418\u043c\u044f \u0444\u0430\u0439\u043b\u0430','\u041a\u0443\u0434\u0430\\\u041d\u043e\u0432\u043e\u0435 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430',true)<br \/>\n\/\/ \u0435\u0441\u043b\u0438 \u0444\u0430\u0439\u043b \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u0438\u043c\u0435\u043d\u0435\u043c \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0442\u043e true - \u0435\u0441\u043b\u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u043b\u0438 false \u0435\u0441\u043b\u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0448\u043b\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0444\u0430\u0439\u043b\u0430<br \/>\nend; <\/code><\/pre>\n<p>\u0417\u0430\u043f\u0438\u0441\u044c \u0432 \u0444\u0430\u0439\u043b:<\/p>\n<pre><code>program CrtApp;<br \/>\nvar<br \/>\n outfile: TextFile;<br \/>\nbegin<br \/>\nAssignFile(outfile, 'c:\\outfile.txt'); \/\/ \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441 \u0444\u0430\u0439\u043b\u0430 \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c<br \/>\nRewrite(outfile);<br \/>\nwriteln(outfile, '\u041f\u0440\u0438\u0432\u0435\u0442 \u041c\u0418\u0420!'); \/\/ \u0417\u0430\u043f\u0438\u0441\u044c \u0432 \u0444\u0430\u0439\u043b 'c:\\outfile.txt' \u043b\u0435\u0433\u0435\u043d\u0434\u0430\u0440\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430<br \/>\nCloseFile(outfile); \/\/ \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b<br \/>\nend. <\/code><\/pre>\n<p>\u041f\u0435\u0447\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u0430 \u0441\u0440\u0430\u0437\u0443 \u043d\u0430 \u043f\u0440\u0438\u043d\u0442\u0435\u0440:<br \/>\n<!--more--><br \/>\n<pre><code>program CrtApp;<br \/>\nvar<br \/>\n outfile: TextFile;<br \/>\nbegin<br \/>\nAssignFile(outfile, 'LTP1'); \/\/ \u043f\u0440\u0438\u043d\u0442\u0435\u0440<br \/>\nRewrite(outfile);<br \/>\nwriteln(outfile, '\u041f\u0440\u0438\u0432\u0435\u0442 \u041c\u0418\u0420!'); \/\/ \u043f\u0435\u0447\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u0430<br \/>\nCloseFile(outfile); \/\/ \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b<br \/>\nend. <\/code><\/pre><\/p>\n<p>\u0427\u0442\u0435\u043d\u0438\u0435, \u0442\u043e\u0447\u043d\u0435\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439:<\/p>\n<pre><code>Program ReadInput;<br \/>\nvar<br \/>\ninfile, outfile: text;<br \/>\nnum_lines, x: integer;<br \/>\nline: string;<br \/>\nbegin<br \/>\nassign(infile, 'C:\\INFILE.TXT');<br \/>\nassign(outfile, 'C:\\OUTFILE.TXT');<br \/>\nreset(infile);  {\u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c}<br \/>\n{\u0432 \u043d\u0430\u0447\u0430\u043b\u043e \u0444\u0430\u0439\u043b\u0430.}<br \/>\nrewrite(outfile);  {\u043e\u0447\u0438\u0449\u0430\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430}<br \/>\nreadln(infile, num_lines);<br \/>\nfor x:= 1 to num_lines do<br \/>\nbegin<br \/>\nreadln(infile, line);<br \/>\nwriteln(outfile, line);<br \/>\nend;<br \/>\nclose(infile);<br \/>\nclose(outfile);<br \/>\nend.<\/code><\/pre>\n<p>\u0422\u0435\u043a\u0441\u0442 \u0444\u0430\u0439\u043b\u0430 Infile.txt \u0434\u043e\u043b\u0436\u0435\u043d \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0438\u043c\u0435\u0442\u044c \u0447\u0438\u0441\u043b\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<p>2<br \/>\n\u041f\u0440\u0438\u0432\u0435\u0442 \u041c\u0418\u0420!<br \/>\n\u041c\u043e\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u044d\u0442\u043e \u0447\u0443\u0434\u043e!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u044f \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u044e \u044d\u0442\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432: \u0417\u0430\u043f\u0438\u0441\u044c \u0432 \u0444\u0430\u0439\u043b: \u041f\u0435\u0447\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u0430 \u0441\u0440\u0430\u0437\u0443 \u043d\u0430 \u043f\u0440\u0438\u043d\u0442\u0435\u0440:<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[194,343,341,296,228,339,340,342,229,344,338,336,293,147,337],"_links":{"self":[{"href":"http:\/\/pblog.ru\/index.php?rest_route=\/wp\/v2\/posts\/14"}],"collection":[{"href":"http:\/\/pblog.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pblog.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pblog.ru\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"http:\/\/pblog.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14"}],"version-history":[{"count":3,"href":"http:\/\/pblog.ru\/index.php?rest_route=\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":229,"href":"http:\/\/pblog.ru\/index.php?rest_route=\/wp\/v2\/posts\/14\/revisions\/229"}],"wp:attachment":[{"href":"http:\/\/pblog.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pblog.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pblog.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}