<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Zdravím,</p>
    <p>já s tím v php pracuji takto:</p>
    <p>Zápis do souboru:</p>
    <p>fwrite($soubor,floatval($_GET['wind'])*10);                                                                                                                                                                    
      <br>
      fwrite($soubor,"
");                                                                                                                                                                                           
      <br>
fwrite($soubor,floatval($_GET['w_max'])*10);                                                                                                                                                                   
      <br>
      fwrite($soubor,"
");                                                                                                                                                                                           
      <br>
fwrite($soubor,"0");                                                                                                                                                                                           
      <br>
    </p>
    <p>A následné čtení ze souboru:</p>
    <p>$soubor1 = fopen("soubor.txt",
"r");                                                                                                                                                                        
                                                                                                                                                                                                          
      <br>
      $radek=fgets($soubor1); //aktualni
hodnoty                                                                                                                                                                  
      <br>
      $akt=explode(" ",$radek);</p>
    <p>Přičemž $akt je pole a jednotlivé buňky mají obsah jednotlivých
      hodnot</p>
    <p>Petr
                                                                                                                                                     
      <br>
    </p>
    <div class="moz-cite-prefix">Dne 13. 12. 20 v 0:00 Jindroush
      napsal(a):<br>
    </div>
    <blockquote type="cite"
      cite="mid:77b3c5f6-8635-ce44-fc4b-886e33537799@seznam.cz">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div class="moz-cite-prefix">Tak si odpovim sam sobe sam, ze to
        neni problem, protoze php to ma default.<br>
        Jinak unpack vraci pole, coz predpokladam, ze je zdroj chyby?</div>
      <div class="moz-cite-prefix"><br>
      </div>
      <div class="moz-cite-prefix">On 12.12.2020 23:56, Jindroush wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:90353f4d-48bf-2773-43ba-c0ca41397d39@seznam.cz">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <div class="moz-cite-prefix">Bezi to php na win? Pak mozna chce
          "wb" a "rb" u fopen.</div>
        <div class="moz-cite-prefix">J.</div>
        <div class="moz-cite-prefix"><br>
        </div>
        <div class="moz-cite-prefix">On 12.12.2020 23:38, Ondra wrote:<br>
        </div>
        <blockquote type="cite"
cite="mid:!&!AAAAAAAAAAAYAAAAAAAAAG7wD3x3nPZPlGKqGTZXKRTCgAAAEAAAAMm+vLd++PhFlhQaFl0ZAD0BAAAAAA==@seznam.cz">
          <meta http-equiv="Content-Type" content="text/html;
            charset=UTF-8">
          <meta name="Generator" content="Microsoft Word 12 (filtered
            medium)">
          <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Formátovaný v HTML Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.StylE-mailovZprvy17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.FormtovanvHTMLChar
        {mso-style-name:"Formátovaný v HTML Char";
        mso-style-priority:99;
        mso-style-link:"Formátovaný v HTML";
        font-family:"Consolas","serif";}
span.StylE-mailovZprvy20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}</style>
          <!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
          <div class="Section1"><br>
            <p class="MsoNormal"><font size="2" face="Calibri"
                color="#1f497d"><span
                  style="font-size:11.0pt;color:#1F497D">$fh=fopen($soubor,
                  "r");<o:p></o:p></span></font></p>
            <p class="MsoNormal"><font size="2" face="Calibri"
                color="#1f497d"><span
                  style="font-size:11.0pt;color:#1F497D">$text =
                  fread($fh, 4);<o:p></o:p></span></font></p>
            <p class="MsoNormal"><font size="2" face="Calibri"
                color="#1f497d"><span
                  style="font-size:11.0pt;color:#1F497D">fclose($fh);<o:p></o:p></span></font></p>
            <p class="MsoNormal"><font size="2" face="Calibri"
                color="#1f497d"><span
                  style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></font></p>
            <p class="MsoNormal"><font size="2" face="Calibri"
                color="#1f497d"><span
                  style="font-size:11.0pt;color:#1F497D">$vracenecislo=
                  unpack("L", $text);<o:p></o:p></span></font></p>
            <p class="MsoNormal"><font size="2" face="Calibri"
                color="#1f497d"><span
                  style="font-size:11.0pt;color:#1F497D">echo
                  $vracenecislo;<o:p></o:p></span></font></p>
            <br>
          </div>
        </blockquote>
      </blockquote>
      <pre class="moz-signature" cols="72">Jindroush <a class="moz-txt-link-rfc2396E" href="mailto:jindroush@seznam.cz" moz-do-not-send="true"><jindroush@seznam.cz></a></pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
HW-list mailing list  -  sponsored by <a class="moz-txt-link-abbreviated" href="http://www.HW.cz">www.HW.cz</a>
<a class="moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a>
<a class="moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a>
</pre>
    </blockquote>
  </body>
</html>