{"id":432,"date":"2010-12-21T18:25:32","date_gmt":"2010-12-21T18:25:32","guid":{"rendered":"https:\/\/ibex.tech\/visualcpp\/?p=432"},"modified":"2022-02-17T06:24:04","modified_gmt":"2022-02-17T06:24:04","slug":"file-access-general","status":"publish","type":"post","link":"https:\/\/ibex.tech\/visualcpp\/file-input-output-serialization\/file-access-general","title":{"rendered":"File Access General"},"content":{"rendered":"<p>There are 2 classes, depending on whether you are doing a single file operation, or whether you need repeated cached file access over a length of time:<\/p>\n<p style=\"padding-left: 30px;\">File &#8211; Static methods for one off access<\/p>\n<p style=\"padding-left: 30px;\">FileInfo &#8211; Create an instance of a FileInfo class to access files over a length of time.<\/p>\n<p>Both have the same functionality, so its just a decision on whether you want the overhead of creating a class to carry out File IO.  This will be down to the number of times the file will be accessed and whether the information being accessed needs to be cached to increase performance (if so use FileInfo).<\/p>\n<p>Auxilliary class to manipulate complete directory strings:<\/p>\n<p style=\"padding-left: 30px;\">Path<\/p>\n<p style=\"padding-left: 30px;\">Use for things like, GetFileName, GetDIrectoryName etc<\/p>\n<h4>Classes To Work With (Look in for all available methods)<\/h4>\n<p>Path<br \/>\nDirectory<br \/>\nFile<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are 2 classes, depending on whether you are doing a single file operation, or whether you need repeated cached file access over a length of time: File &#8211; Static methods for one off access FileInfo &#8211; Create an instance of a FileInfo class to access files over a length of time. Both have the [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-432","post","type-post","status-publish","format-standard","hentry","category-file-input-output-serialization"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/comments?post=432"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/432\/revisions"}],"predecessor-version":[{"id":1082,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/432\/revisions\/1082"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/media?parent=432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/categories?post=432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/tags?post=432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}