<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2013/11/27 Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Am 27.11.2013 16:53, schrieb Frederic
      Da Vitoria:<br>
    </div><div class="im">
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">2013/11/27 Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span><br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF">
                <div>Am 27.11.2013 16:30, schrieb Frederic Da Vitoria:<br>
                </div>
                <div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div class="gmail_extra">
                        <div class="gmail_quote">2013/11/27 leledumbo <span dir="ltr"><<a href="mailto:leledumbo_cool@yahoo.co.id" target="_blank">leledumbo_cool@yahoo.co.id</a>></span><br>
                          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> >From
                            <a href="http://wiki.lazarus.freepascal.org/xmlconf" target="_blank">http://wiki.lazarus.freepascal.org/xmlconf</a>,
                            looks like simply setting<br>
                            FileName will do.<br>
                          </blockquote>
                          <div> </div>
                          Yes, that part works. I dislike the way it
                          works (Implicit saving does not seem very
                          Pascal-ish to me), but it does save a file. My
                          issues are rather with the xml, but I'll
                          rather answer to waldo kitty here<br>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                </div>
                TIniFile and TMemIniFile do an implicit save as well...
                (the former during each .Write* the latter during
                destruction)<br>
                <br>
                Regards,<br>
                Sven<br>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
        <div class="gmail_extra">Yes. But my Pascal reference is Assign
          - Reset/Rewrite, Close. I still have difficulties appending
          "File" after Assign and Close :-P </div>
      </div>
    </blockquote></div>
    But XmlConfig is AFAIK a spiritual "successor" to TIniFile which is
    why I brought it up.</div></blockquote><div><br></div><div>Ah, OK.<br><br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">

<div class="im">
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">Now that I think of it, I never tried
          to do a new AssignFile after the Reset/Rewrite step, but I
          would be much surprised if it flushed and closed the first
          file handle. <br>
        </div>
      </div>
    </blockquote></div>
    It won't flush or close the file, but if you haven't copied the
    Textfile or File variable somewhere else then you'll lose the
    reference to the file. It will be closed when the application is
    terminated, but everything that was not flushed until the Assign
    will stay in the buffer and won't be in the file... Of course this
    problem is a bit theoretical and is not really related to your
    problem :)<br></div></blockquote><div><br> <br></div><div>Absolutely :-)<br></div></div><br>-- <br>Frederic Da Vitoria<br>(davitof)<br><br>Membre de l'April - « promouvoir et défendre le logiciel libre » - <a href="http://www.april.org" target="_blank">http://www.april.org</a><br>


</div></div>