{"id":1073,"date":"2021-02-02T07:48:46","date_gmt":"2021-02-02T14:48:46","guid":{"rendered":"https:\/\/www.great-white-software.com\/blog\/?p=1073"},"modified":"2021-02-02T07:48:46","modified_gmt":"2021-02-02T14:48:46","slug":"load-a-file-in-reverse","status":"publish","type":"post","link":"https:\/\/www.great-white-software.com\/blog\/2021\/02\/02\/load-a-file-in-reverse\/","title":{"rendered":"Load a file in reverse"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">From https:\/\/forum.xojo.com\/t\/load-text-file-in-reverse\/60911<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Simply read the file from beginning to end and instead of always appending lines always INSERT the line just read at the front of the listbox.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>t = f.OpenAsTextFile \/\/ open selected text file\nWhile Not t.EndOfFile\n x = t.ReadLine\n  lstHistory.AddRowAt(0, x)\nWend\nt.Close<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and the list will appear &#8220;reversed&#8221; as if you read from the end back to the beginning<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From https:\/\/forum.xojo.com\/t\/load-text-file-in-reverse\/60911 Simply read the file from beginning to end and instead of always appending lines always INSERT the line just read at the front of the listbox. and the list will appear &#8220;reversed&#8221; as if you read from the end back to the beginning<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-1073","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts\/1073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/comments?post=1073"}],"version-history":[{"count":1,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts\/1073\/revisions"}],"predecessor-version":[{"id":1074,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts\/1073\/revisions\/1074"}],"wp:attachment":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/media?parent=1073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/categories?post=1073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/tags?post=1073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}