<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Creating and reading an INI file on the Cardputer&#x27;s SD Card]]></title><description><![CDATA[<p dir="auto">Hi Everyone!</p>
<p dir="auto">I have been having fun with the m5Cardputer, but am trying to create an INI file for Config settings.</p>
<p dir="auto">I want to use the mINI file class by metaYeti:</p>
<p dir="auto"><a href="https://github.com/metayeti/mINI" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/metayeti/mINI</a></p>
<p dir="auto">So I've started with this code:</p>
<pre><code>  mINI::INIFile file("myfile.ini");
  mINI::INIStructure ini;
  //file.read(ini);
   ini["section"]["key"] = "value adj"; 
   file.generate(ini);
   Serial.printf ("Ini section is %s\n",ini.get("section").get("key").c_str());
  //file.write(ini); 
  Serial.printf ("Tried to write INI to SD card.\n");
</code></pre>
<p dir="auto">This all compiles and runs - but of course, it doesn't do anything. What baffles me is where the INI file would be created - as there is no path or filesystem set in the example above. I have a feeling I need to do something with a filestream class or something - and somehow make this stream connect with the SD filesystem object or something.</p>
<p dir="auto">The object is clearly being created - because I can print out the value I set (as shown above).</p>
<p dir="auto">So can anyone tell me how this can be actually linked to an actual inifile stored in an actual folder!?!</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://community.m5stack.com/topic/6730/creating-and-reading-an-ini-file-on-the-cardputer-s-sd-card</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Mar 2026 00:19:45 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6730.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 25 Aug 2024 17:14:21 GMT</pubDate><ttl>60</ttl></channel></rss>