<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://humanemulator.net/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://humanemulator.net/wiki/feed.php">
        <title>Human Emulator wiki en:objects:textfile:file_to_file</title>
        <description></description>
        <link>https://humanemulator.net/wiki/</link>
        <image rdf:resource="https://humanemulator.net/wiki///humanemulator.net/wiki/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-11-15T13:54:17+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:dedupe&amp;rev=1785959547&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:exclude_strings_file_from_file&amp;rev=1785959547&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:file_links&amp;rev=1785959548&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:randomize_to&amp;rev=1785959548&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:replace_string&amp;rev=1785959549&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:revert_strings_file&amp;rev=1785959549&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:sort&amp;rev=1785959550&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://humanemulator.net/wiki///humanemulator.net/wiki/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Human Emulator wiki</title>
        <link>https://humanemulator.net/wiki/</link>
        <url>https://humanemulator.net/wiki///humanemulator.net/wiki/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:dedupe&amp;rev=1785959547&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:52:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:textfile:file_to_file:dedupe</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:dedupe&amp;rev=1785959547&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7010&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; textfile-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo(&quot;1.Remove duplicates from the file:&quot;);
echo($textfile-&gt;dedupe(&quot;test \ test_dedupe.txt&quot;, &quot;test \ test_dedupe.txt&quot;));

//show the results
$app-&gt;shell_execute(&quot;&quot;, &quot;test \ test_dedupe.txt&quot;);

/…</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:exclude_strings_file_from_file&amp;rev=1785959547&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:52:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:textfile:file_to_file:exclude_strings_file_from_file</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:exclude_strings_file_from_file&amp;rev=1785959547&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7010&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; textfile-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo(&quot;1.Let&#039;s remove the contents of another file from the source file and write the result to the file:&quot;);
echo($textfile-&gt;exclude_strings_file_from_file(&quot;test \ test_exclude_src.txt&quot;, &quot;test \ …</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:file_links&amp;rev=1785959548&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:52:28+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:textfile:file_to_file:file_links</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:file_links&amp;rev=1785959548&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7010&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
  $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; textfile-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//format file content

$File_Src = &quot;Test.txt&quot;;

$str = $textfile-&gt;read_file($File_Src, $timeout);
echo &quot;Source file $File_Src: &lt;br&gt;&quot;;
$str = str_replace(&quot;
&quot;,&quot; &lt;br&gt; &quot;, $str);
echo $str.&quot;&lt;br&gt; &lt;br&gt;&quot;;

$…</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:randomize_to&amp;rev=1785959548&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:52:28+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:textfile:file_to_file:randomize_to</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:randomize_to&amp;rev=1785959548&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7010&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; textfile-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo(&quot;1.Randomize the given file into a result file:&quot;);
echo($textfile-&gt;randomize_to(&quot;test \ test_randomize.txt&quot;, &quot;test \ test_randomized.txt&quot;, 60).&quot;&lt;br&gt;&quot;);

//show results
$app-&gt;shell_execute(&quot;…</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:replace_string&amp;rev=1785959549&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:52:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:textfile:file_to_file:replace_string</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:replace_string&amp;rev=1785959549&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7010&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; textfile-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo(&quot;1.Let&#039;s replace the line in the given file:&quot;);
echo($textfile-&gt;replace_string(&quot;test \ test_count.txt&quot;, &quot;test \ test_replaced.txt&quot;, &quot;#&quot;, &quot;#&quot;, 60).&quot;&lt;br&gt;&quot;);

//result
$app-&gt;shell_execute(&quot;&quot;, …</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:revert_strings_file&amp;rev=1785959549&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:52:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:textfile:file_to_file:revert_strings_file</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:revert_strings_file&amp;rev=1785959549&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7010&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; textfile-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo(&quot;1.Reverse the order of lines in the given file:&quot;);
echo($textfile-&gt;revert_strings_file(&quot;test \ test_count.txt&quot;, &quot;test \ test_revert.txt&quot;, 60));

//result
$app-&gt;shell_execute(&quot;&quot;, &quot;test \ te…</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:sort&amp;rev=1785959550&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:52:30+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:textfile:file_to_file:sort</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:textfile:file_to_file:sort&amp;rev=1785959550&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7010&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; textfile-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo(&quot;1.Sort the given file:&quot;);
echo($textfile-&gt;sort(&quot;test \ test_dedupe.txt&quot;, &quot;test \ test_sorted.txt&quot;, 60));

//show the results
$app-&gt;shell_execute(&quot;&quot;, &quot;test \ test_sorted.txt&quot;);

//end
echo …</description>
    </item>
</rdf:RDF>
