{"id":123,"date":"2012-07-05T14:07:38","date_gmt":"2012-07-05T10:07:38","guid":{"rendered":"http:\/\/infobs.athn.ru\/?p=123"},"modified":"2012-07-05T14:07:38","modified_gmt":"2012-07-05T10:07:38","slug":"atributyi-faylov","status":"publish","type":"post","link":"https:\/\/infobase.athn.ru\/program\/2012\/07\/atributyi-faylov\/","title":{"rendered":"\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0444\u0430\u0439\u043b\u043e\u0432"},"content":{"rendered":"<pre>using System;\nusing System.IO;\nusing System.Text;\n\nclass Test \n{\n    public static void Main() \n    {\n        string path = @\"c:\\temp\\MyTest.txt\";\n\n        \/\/ Create the file if it does not exist.\n        if (!File.Exists(path)) \n        {\n            File.Create(path);\n        }\n\n        if ((File.GetAttributes(path) &amp; FileAttributes.Hidden) == FileAttributes.Hidden) \n        {\n            \/\/ Show the file.\n            File.SetAttributes(path, FileAttributes.Archive);\n            Console.WriteLine(\"The {0} file is no longer hidden.\", path);\n\n        } \n        else \n        {\n            \/\/ Hide the file.\n            File.SetAttributes(path, File.GetAttributes(path) | FileAttributes.Hidden);\n            Console.WriteLine(\"The {0} file is now hidden.\", path);\n        }\n    }\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>using System; using System.IO; using System.Text; class Test { public static void Main() { string path = @&#187;c:\\temp\\MyTest.txt&#187;; \/\/ Create the file if it does not exist. if (!File.Exists(path)) { <a class=\"more-link\" href=\"https:\/\/infobase.athn.ru\/program\/2012\/07\/atributyi-faylov\/\">Continue Reading \u2192<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-csharp"],"_links":{"self":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":0,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"wp:attachment":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}