<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>text | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/text/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Sat, 06 Feb 2021 19:43:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>text | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>Tutorial 14 on working with strings published</title>
		<link>https://learncgames.com/tutorial-14-on-working-with-strings-published/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tutorial-14-on-working-with-strings-published</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Sun, 07 Feb 2021 00:00:05 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[strings]]></category>
		<category><![CDATA[text]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=2630</guid>

					<description><![CDATA[<p>Reading the C reddit most days, I see from time to time question about strings. They&#8217;re not particularly complex but I feel you really have to get your head around pointers to grok strings. I&#8217;ve already done a C tutorial on Pointers and c-strings but I thought showing some examples of doing things with c-strings [&#8230;]</p>
The post <a href="https://learncgames.com/tutorial-14-on-working-with-strings-published/">Tutorial 14 on working with strings published</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:196,&quot;href&quot;:&quot;https:\/\/pixabay.com\/users\/markusspiske-670330\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1568556&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:197,&quot;href&quot;:&quot;https:\/\/pixabay.com\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1568556&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260205102120\/https:\/\/pixabay.com\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 12:33:05&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-11 15:44:44&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-19 10:48:59&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-22 20:14:49&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-27 12:27:02&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-08 11:33:28&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-13 10:15:23&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-24 21:49:14&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-12 02:38:36&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-15 09:29:25&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-15 09:29:25&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:157,&quot;href&quot;:&quot;https:\/\/www.reddit.com\/r\/C_Programming&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_2631" aria-describedby="caption-attachment-2631" style="width: 200px" class="wp-caption alignleft"><img fetchpriority="high" decoding="async" class="size-medium wp-image-2631" src="https://learncgames.com/wp-content/uploads/2021/02/code-1568556_640-200x300.jpg" alt="Code listing on screen with keyboard" width="200" height="300" srcset="https://learncgames.com/wp-content/uploads/2021/02/code-1568556_640-200x300.jpg 200w, https://learncgames.com/wp-content/uploads/2021/02/code-1568556_640.jpg 426w" sizes="(max-width: 200px) 100vw, 200px" /><figcaption id="caption-attachment-2631" class="wp-caption-text">Image by <a href="https://pixabay.com/users/markusspiske-670330/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1568556">Markus Spiske</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1568556">Pixabay</a></figcaption></figure>
<p>Reading the <a title="Link to C Subreddit" href="https://www.reddit.com/r/C_Programming/" target="_blank" rel="nofollow noopener">C reddit</a> most days, I see from time to time question about strings. They&#8217;re not particularly complex but I feel you really have to get your head around pointers to grok strings. I&#8217;ve already done a C tutorial on <a title="Link to tutorial on pointers and C-Strings" href="https://learncgames.com/tutorial-seven-about-pointers-and-strings/" target="_blank" rel="nofollow noopener">Pointers and c-strings</a> but I thought showing some examples of doing things with c-strings would not go amiss.</p>
<p>The pointers aspect of C strings probably muddies the water a bit. All you are doing is manipulating a contiguous block of characters in RAM that ends with a 0. The pointer just tells you where in RAM that block begins. So long as it finishes with a 0 (\0 in C), it will work ok.</p>
<p>That&#8217;s what <a title="Tutorial 14 – Working with strings in C" href="https://learncgames.com/tutorials/tutorial-14-working-with-strings-in-c/" target="_blank" rel="nofollow noopener">Tutorial 14- working with strings</a> is about.  Especially for beginners, doing things like converting ints to strings, or concatenating strings can be a bit fiddly. I&#8217;ve also provided both the Windows and Linux versions. i.e. compiling with Visual C on Windows and clang on Ubuntu.</p>
<p>For instance, you might have heard about the long to ascii function <strong>ltoa</strong>. Bad news. It doesn&#8217;t exist in Linux compilers.  There is a Windows version with the instantly memorable (not) name <strong>_ltoa_s</strong>, which is one of the safe C functions.  Incidentally if you are using SDL then there is a <strong>SDL_ltoa</strong> function provided for you although oddly it&#8217;s not documented.</p>The post <a href="https://learncgames.com/tutorial-14-on-working-with-strings-published/">Tutorial 14 on working with strings published</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2630</post-id>	</item>
		<item>
		<title>Kilo- a thousand lines text editor in C</title>
		<link>https://learncgames.com/kilo-a-thousand-lines-text-editor-in-c/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=kilo-a-thousand-lines-text-editor-in-c</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Wed, 20 Jan 2021 00:00:26 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[Editor]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[utility]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=2446</guid>

					<description><![CDATA[<p>Developed by Salvatore Sanfilippo aka antirez and licensed under the BSD 2 licence, kilo is a simple text editor in one file. If you are learning C and want to see how to write a utility, this might be a good example to follow. Warning though he does use pointers so make sure you&#8217;ve learnt [&#8230;]</p>
The post <a href="https://learncgames.com/kilo-a-thousand-lines-text-editor-in-c/">Kilo- a thousand lines text editor in C</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:241,&quot;href&quot;:&quot;https:\/\/opensource.org\/licenses\/BSD-2-Clause&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20230210084627\/https:\/\/opensource.org\/licenses\/BSD-2-Clause\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 13:06:47&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-10 12:14:06&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-14 10:54:05&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-19 12:58:23&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-22 13:13:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-03 00:03:29&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-06 22:06:51&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-10 07:40:29&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-17 17:31:25&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-21 20:58:19&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-27 05:30:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-31 11:15:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-05 01:58:19&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-09 07:39:32&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-15 10:52:54&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-22 15:21:36&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-22 15:21:36&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img decoding="async" class="alignleft size-medium wp-image-2447" src="https://learncgames.com/wp-content/uploads/2021/01/antirez-kilo-300x222.png" alt="Antirez kilo text editor" width="300" height="222" srcset="https://learncgames.com/wp-content/uploads/2021/01/antirez-kilo-300x222.png 300w, https://learncgames.com/wp-content/uploads/2021/01/antirez-kilo.png 563w" sizes="(max-width: 300px) 100vw, 300px" />Developed by Salvatore Sanfilippo aka antirez and licensed under the <a title="Link to BSD 2 licence" href="https://opensource.org/licenses/BSD-2-Clause" target="_blank" rel="nofollow noopener">BSD 2 licence</a>, kilo is a simple text editor in one file.</p>
<p>If you are learning C and want to see how to write a utility, this might be a good example to follow. Warning though he does use pointers so make sure you&#8217;ve learnt them first!</p>
<p>I had a stab at writing one quite a few years ago but it wasn&#8217;t very good. I have a suspicion that writing a good text editor depends upon you first creating a good implementation of the text storage. Solve that and it&#8217;s downhill for the rest.</p>
<p>I&#8217;ve added this to my curated library of C code, on the C Code link on the top menu.</p>
<p>&nbsp;</p>The post <a href="https://learncgames.com/kilo-a-thousand-lines-text-editor-in-c/">Kilo- a thousand lines text editor in C</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2446</post-id>	</item>
		<item>
		<title>Rogue like &#8211; do you use graphics or text?</title>
		<link>https://learncgames.com/rogue-like-do-you-use-graphics-or-text/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rogue-like-do-you-use-graphics-or-text</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Sun, 08 Nov 2020 00:00:11 +0000</pubDate>
				<category><![CDATA[design]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[rogue]]></category>
		<category><![CDATA[text]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=1739</guid>

					<description><![CDATA[<p>The original rogue used graphics. This was back in the era of terminals and home computers and graphics could be quite limited. So there&#8217;s a tradition of using text. However if you do a google image search for rogue game like I did here, you can see that while many of them are text there [&#8230;]</p>
The post <a href="https://learncgames.com/rogue-like-do-you-use-graphics-or-text/">Rogue like – do you use graphics or text?</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:399,&quot;href&quot;:&quot;https:\/\/www.cprogramming.com\/tutorial\/unicode.html&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:400,&quot;href&quot;:&quot;https:\/\/www.compart.com\/en\/unicode\/U+1F47E&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:401,&quot;href&quot;:&quot;https:\/\/www.reddit.com\/r\/roguelikedev\/comments\/2fxaks\/a_compendium_of_ascii_characters_across_roguelikes&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20250306102914\/https:\/\/www.reddit.com\/r\/roguelikedev\/comments\/2fxaks\/a_compendium_of_ascii_characters_across_roguelikes\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 14:43:07&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-16 05:45:33&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-23 12:26:25&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-28 00:27:02&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-13 04:31:06&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-30 18:34:37&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-03 23:03:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-13 06:15:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-21 18:55:37&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-21 18:55:37&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img decoding="async" class="alignleft size-large wp-image-1740" src="https://learncgames.com/wp-content/uploads/2020/11/roguegames-1024x628.png" alt="Rogue games search " width="1024" height="628" srcset="https://learncgames.com/wp-content/uploads/2020/11/roguegames-1024x628.png 1024w, https://learncgames.com/wp-content/uploads/2020/11/roguegames-300x184.png 300w, https://learncgames.com/wp-content/uploads/2020/11/roguegames-768x471.png 768w, https://learncgames.com/wp-content/uploads/2020/11/roguegames.png 1139w" sizes="(max-width: 1024px) 100vw, 1024px" />The original rogue used graphics. This was back in the era of terminals and home computers and graphics could be quite limited. So there&#8217;s a tradition of using text. However if you do a google image search for rogue game like I did here, you can see that while many of them are text there are a couple that are graphics.</p>
<p><strong>So the question is do you use graphics or text?</strong></p>
<p>Text has the advantage that its just there. All you have to do is choose the appropriate character.</p>
<p>Plus if you use Unicode (<em>always a bit of a pain in C b<a title="Link to C programming about Unicode" href="https://www.cprogramming.com/tutorial/unicode.html" target="_blank" rel="nofollow noopener noreferrer">ut doable</a></em>) then you have access to hundreds of thousands of different characters. Like this one:</p>
<p><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f47e.png" alt="👾" class="wp-smiley" style="height: 1em; max-height: 1em;" />. Which is actually these</p>
<p><code class="" data-line="">&amp;#128126;</code></p>
<p><code class="" data-line="">&amp;#x1F47E;</code></p>
<p>More information about this one <a title="Link to Compart.com" href="https://www.compart.com/en/unicode/U+1F47E" target="_blank" rel="nofollow noopener noreferrer">from here</a>.</p>
<p>Graphics on the other hand can be a lot more colourful but you have to get them drawn, or acquire them from somewhere like kenney.nl. So not an easy one to decide. If I had the resources I&#8217;d use graphics, but I&#8217;ll keep to the tradition of using Text.</p>
<p><strong>A tip. </strong>When you have a question like &#8220;What characters are used in rogue&#8221; just try it. There is so much information on the web that there&#8217;s a good chance that someone will have done it. I&#8217;m finding this more and more and sure enough, I found <a title="Link to a compendium of rogue characters on Reddit" href="https://www.reddit.com/r/roguelikedev/comments/2fxaks/a_compendium_of_ascii_characters_across_roguelikes/" target="_blank" rel="nofollow noopener noreferrer">this on Reddit.</a> How would you have ever found that out before the web existed?</p>The post <a href="https://learncgames.com/rogue-like-do-you-use-graphics-or-text/">Rogue like – do you use graphics or text?</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1739</post-id>	</item>
		<item>
		<title>What is the best way to include text?</title>
		<link>https://learncgames.com/what-is-the-best-way-to-include-text/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=what-is-the-best-way-to-include-text</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Sun, 09 Aug 2020 23:00:18 +0000</pubDate>
				<category><![CDATA[Game]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[decompression]]></category>
		<category><![CDATA[text]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=1139</guid>

					<description><![CDATA[<p>One of the games I&#8217;m working on needs to include a 1.9 MB text file (200,000 words). Now it&#8217;s not that big a deal but using 7zip I can compress it down to 400 KB and that&#8217;s 20% of the uncompressed size. So I&#8217;m thinking of including some C# code to decompress it. But I [&#8230;]</p>
The post <a href="https://learncgames.com/what-is-the-best-way-to-include-text/">What is the best way to include text?</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:580,&quot;href&quot;:&quot;https:\/\/pixabay.com\/photos\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1149723&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260129081545\/https:\/\/pixabay.com\/photos\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 16:29:19&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-21 17:04:39&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-01 10:14:22&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-05 22:30:18&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-13 13:30:50&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-08 04:50:53&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-15 07:38:58&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-15 07:38:58&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:581,&quot;href&quot;:&quot;https:\/\/pixabay.com\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1149723&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260205102120\/https:\/\/pixabay.com\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 16:29:21&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-21 17:04:41&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-01 10:14:22&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-13 13:30:50&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-08 04:50:52&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-15 07:38:56&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-15 07:38:56&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_1140" aria-describedby="caption-attachment-1140" style="width: 300px" class="wp-caption alignleft"><img loading="lazy" decoding="async" class="size-medium wp-image-1140" src="https://learncgames.com/wp-content/uploads/2020/08/dictionary-1149723_640-300x199.jpg" alt="Words" width="300" height="199" srcset="https://learncgames.com/wp-content/uploads/2020/08/dictionary-1149723_640-300x199.jpg 300w, https://learncgames.com/wp-content/uploads/2020/08/dictionary-1149723_640.jpg 640w" sizes="auto, (max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-1140" class="wp-caption-text">Image by <a href="https://pixabay.com/photos/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1149723">Free-Photos</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1149723">Pixabay</a></figcaption></figure>
<p>One of the games I&#8217;m working on needs to include a 1.9 MB text file (<em>200,000 words</em>). Now it&#8217;s not that big a deal but using 7zip I can compress it down to 400 KB and that&#8217;s 20% of the uncompressed size. So I&#8217;m thinking of including some C# code to decompress it.</p>
<p>But I did wonder if there was any kind of built in decompression, so you could add it to say Resources and have it decompressed automatically when read. I haven&#8217;t seen anything like that but it would be cool if if existed.</p>
<p>&nbsp;</p>The post <a href="https://learncgames.com/what-is-the-best-way-to-include-text/">What is the best way to include text?</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1139</post-id>	</item>
	</channel>
</rss>
