<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.gtaconnected.com/wiki/index.php?action=history&amp;feed=atom&amp;title=openFile</id>
	<title>openFile - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gtaconnected.com/wiki/index.php?action=history&amp;feed=atom&amp;title=openFile"/>
	<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=openFile&amp;action=history"/>
	<updated>2026-05-02T05:58:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=openFile&amp;diff=6217&amp;oldid=prev</id>
		<title>Mex: Mex moved page OpenFile to openFile</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=openFile&amp;diff=6217&amp;oldid=prev"/>
		<updated>2019-08-24T15:20:16Z</updated>

		<summary type="html">&lt;p&gt;Mex moved page &lt;a href=&quot;/OpenFile&quot; class=&quot;mw-redirect&quot; title=&quot;OpenFile&quot;&gt;OpenFile&lt;/a&gt; to &lt;a href=&quot;/openFile&quot; title=&quot;openFile&quot;&gt;openFile&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = shared&lt;br /&gt;
|type = function&lt;br /&gt;
|name = openFile&lt;br /&gt;
|parameters = string filePath, [ bool writable = false ]&lt;br /&gt;
|parameter1 = string filePath The path to the file.&lt;br /&gt;
|parameter2 = bool writable optional false Whether to open the file in writable mode.&lt;br /&gt;
|returnTypes = Stream&lt;br /&gt;
|usage = open a handle to a file on the hard drive, fetching a Stream object on success.&amp;lt;br&amp;gt;The file is opened in binary mode, not text mode.&amp;lt;br&amp;gt;The initial seek position is 0.&amp;lt;br&amp;gt;If parameter Writable is bool true, the file is created if it doesn&amp;#039;t exist&lt;br /&gt;
|returnInfo = a handle to the file stream&lt;br /&gt;
|returnFail1 = null n/a&lt;br /&gt;
|exampleLua = file = openFile(&amp;quot;test.txt&amp;quot;, true)&lt;br /&gt;
if file ~= nil then&lt;br /&gt;
    file:writeString(&amp;quot;this is a test&amp;quot;)&lt;br /&gt;
    file:close()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
|exampleJS = file = openFile(&amp;quot;test.txt&amp;quot;, true)&lt;br /&gt;
if (file != null) {&lt;br /&gt;
    file.writeString(&amp;quot;this is a test&amp;quot;)&lt;br /&gt;
    file.close()&lt;br /&gt;
}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Mex</name></author>
	</entry>
</feed>