<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=File.open</id>
	<title>File.open - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=File.open"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=File.open&amp;action=history"/>
	<updated>2026-04-10T15:04:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://miniscript.org/w/index.php?title=File.open&amp;diff=1438&amp;oldid=prev</id>
		<title>Redspark: Removed fopen() reference</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=File.open&amp;diff=1438&amp;oldid=prev"/>
		<updated>2025-09-29T15:05:39Z</updated>

		<summary type="html">&lt;p&gt;Removed fopen() reference&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 15:05, 29 September 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot; &gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Mode !! Description !! Starting Position&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Mode !! Description !! Starting Position&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;r&amp;lt;/tt&amp;gt; || Opens an existing text file for reading. If the file does not exist, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;fopen() &lt;/del&gt;returns &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;NULL&lt;/del&gt;. || beginning&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;r&amp;lt;/tt&amp;gt; || Opens an existing text file for reading. If the file does not exist, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;it &lt;/ins&gt;returns &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;null&lt;/ins&gt;. || beginning&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;w&amp;lt;/tt&amp;gt; || Opens a text file for writing. If the file exists, its contents are truncated (emptied). If the file does not exist, a new file is created. || beginning&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;w&amp;lt;/tt&amp;gt; || Opens a text file for writing. If the file exists, its contents are truncated (emptied). If the file does not exist, a new file is created. || beginning&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Redspark</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=File.open&amp;diff=1437&amp;oldid=prev</id>
		<title>Redspark: Update file mode descriptions for clarification</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=File.open&amp;diff=1437&amp;oldid=prev"/>
		<updated>2025-09-29T15:04:34Z</updated>

		<summary type="html">&lt;p&gt;Update file mode descriptions for clarification&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 15:04, 29 September 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot; &gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Mode !! Description !! Starting Position&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Mode !! Description !! Starting Position&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;r&amp;lt;/tt&amp;gt; || &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;open &lt;/del&gt;for reading &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(The &lt;/del&gt;file &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;must &lt;/del&gt;exist) || beginning&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;r&amp;lt;/tt&amp;gt; || &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Opens an existing text file &lt;/ins&gt;for reading&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. If the &lt;/ins&gt;file &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;does not &lt;/ins&gt;exist&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, fopen(&lt;/ins&gt;) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;returns NULL. &lt;/ins&gt;|| beginning&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;w&amp;lt;/tt&amp;gt; || &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;open &lt;/del&gt;for writing (&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;creates file if it doesn't exist&lt;/del&gt;). &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Deletes content and overwrites &lt;/del&gt;the file. || beginning&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;w&amp;lt;/tt&amp;gt; || &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Opens a text file &lt;/ins&gt;for writing&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. If the file exists, its contents are truncated &lt;/ins&gt;(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;emptied&lt;/ins&gt;). &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;If &lt;/ins&gt;the file &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;does not exist, a new file is created&lt;/ins&gt;. || beginning&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;a&amp;lt;/tt&amp;gt; || &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;open &lt;/del&gt;for appending &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(creates &lt;/del&gt;file &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;if it doesn't &lt;/del&gt;exist&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;) &lt;/del&gt;|| end&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;a&amp;lt;/tt&amp;gt; || &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Opens a text file &lt;/ins&gt;for appending&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. Data is written to the end of the &lt;/ins&gt;file&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. If the file does not &lt;/ins&gt;exist&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, a new file is created. &lt;/ins&gt;|| end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;r+&amp;lt;/tt&amp;gt; || &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;open &lt;/del&gt;for reading and writing &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(&lt;/del&gt;The file must exist&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;)&lt;/del&gt;|| beginning&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;r+&amp;lt;/tt&amp;gt; || &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Opens an existing text file &lt;/ins&gt;for &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;both &lt;/ins&gt;reading and writing&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. &lt;/ins&gt;The file must exist&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;|| beginning&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;w+&amp;lt;/tt&amp;gt;  || &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;open &lt;/del&gt;for reading &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and writing&lt;/del&gt;. If file exists &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;deletes content and overwrites &lt;/del&gt;the file, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;otherwise creates an empty &lt;/del&gt;new file || beginning&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;w+&amp;lt;/tt&amp;gt;  || &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Opens a text file &lt;/ins&gt;for &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;both writing and &lt;/ins&gt;reading. If &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the &lt;/ins&gt;file exists&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, its contents are truncated. If &lt;/ins&gt;the file &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;does not exist&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;a &lt;/ins&gt;new file &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is created. &lt;/ins&gt;|| beginning&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;a+&amp;lt;/tt&amp;gt; || &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;open &lt;/del&gt;for reading &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and writing (append if &lt;/del&gt;file &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;exists) &lt;/del&gt;|| end&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tt&amp;gt;a+&amp;lt;/tt&amp;gt; || &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Opens a text file &lt;/ins&gt;for &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;both appending and &lt;/ins&gt;reading&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. Data is written to the end of the file. If the file does not exist, a new &lt;/ins&gt;file &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is created. &lt;/ins&gt;|| end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Redspark</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=File.open&amp;diff=1232&amp;oldid=prev</id>
		<title>JoeStrout: /* Arguments */</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=File.open&amp;diff=1232&amp;oldid=prev"/>
		<updated>2024-07-22T13:46:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Arguments&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 13:46, 22 July 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot; &gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| path || &amp;quot;&amp;quot; || full or partial path to the file of interest&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| path || &amp;quot;&amp;quot; || full or partial path to the file of interest&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| mode || &amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;rw&lt;/del&gt;+&amp;quot; || file mode (see below)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| mode || &amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;r&lt;/ins&gt;+&amp;quot; || file mode (see below)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>JoeStrout</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=File.open&amp;diff=615&amp;oldid=prev</id>
		<title>JoeStrout: Created page with &quot;In Mini Micro and command-line MiniScript, the &lt;c&gt;file.open&lt;/c&gt; function returns a FileHandle object that enables further reads, writes, or updates of the file...&quot;</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=File.open&amp;diff=615&amp;oldid=prev"/>
		<updated>2021-01-05T21:21:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;In &lt;a href=&quot;/wiki/Mini_Micro&quot; title=&quot;Mini Micro&quot;&gt;Mini Micro&lt;/a&gt; and &lt;a href=&quot;/wiki/Command-line_MiniScript&quot; class=&quot;mw-redirect&quot; title=&quot;Command-line MiniScript&quot;&gt;command-line MiniScript&lt;/a&gt;, the &amp;lt;c&amp;gt;&lt;a href=&quot;/wiki/File&quot; title=&quot;File&quot;&gt;file&lt;/a&gt;.open&amp;lt;/c&amp;gt; function returns a &lt;a href=&quot;/wiki/FileHandle&quot; title=&quot;FileHandle&quot;&gt;FileHandle&lt;/a&gt; object that enables further reads, writes, or updates of the file...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In [[Mini Micro]] and [[command-line MiniScript]], the &amp;lt;c&amp;gt;[[file]].open&amp;lt;/c&amp;gt; function returns a [[FileHandle]] object that enables further reads, writes, or updates of the file.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parameter Name !! Default Value !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| path || &amp;quot;&amp;quot; || full or partial path to the file of interest&lt;br /&gt;
|-&lt;br /&gt;
| mode || &amp;quot;rw+&amp;quot; || file mode (see below)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== File Modes ===&lt;br /&gt;
&lt;br /&gt;
The second parameter to &amp;lt;c&amp;gt;[[file]].open&amp;lt;/c&amp;gt; specifies whether the file is opened for reading, writing, or both.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Mode !! Description !! Starting Position&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;r&amp;lt;/tt&amp;gt; || open for reading (The file must exist) || beginning&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;w&amp;lt;/tt&amp;gt; || open for writing (creates file if it doesn't exist). Deletes content and overwrites the file. || beginning&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;a&amp;lt;/tt&amp;gt; || open for appending (creates file if it doesn't exist) || end&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;r+&amp;lt;/tt&amp;gt; || open for reading and writing (The file must exist)|| beginning&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;w+&amp;lt;/tt&amp;gt;  || open for reading and writing. If file exists deletes content and overwrites the file, otherwise creates an empty new file || beginning&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;a+&amp;lt;/tt&amp;gt; || open for reading and writing (append if file exists) || end&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
When a file is opened with update mode ( '&amp;lt;tt&amp;gt;+&amp;lt;/tt&amp;gt;' as the second or third character in the mode argument), both input and output may be performed on the associated stream.&lt;br /&gt;
&lt;br /&gt;
Writing and appending modes will attempt to create a file of the given name, if no such file already exists. If this operation fails, &amp;lt;c&amp;gt;[[file]].open&amp;lt;/c&amp;gt; will return &amp;lt;c&amp;gt;[[null]]&amp;lt;/c&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This appends a new line to an existing text file (creating it if it does not already exist).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;f = file.open(&amp;quot;test.txt&amp;quot;, &amp;quot;a&amp;quot;)&lt;br /&gt;
f.write char(13) + &amp;quot;Hello world!&amp;quot;&lt;br /&gt;
f.close&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;br /&gt;
[[Category:Command-Line MiniScript]]&lt;/div&gt;</summary>
		<author><name>JoeStrout</name></author>
		
	</entry>
</feed>