<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://ubersoft.org/Sputnik/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_FileAppendLines</id>
		<title>Core Function FileAppendLines - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_FileAppendLines"/>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_FileAppendLines&amp;action=history"/>
		<updated>2026-04-25T05:25:19Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_FileAppendLines&amp;diff=5682&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; FileAppendLines( &lt;file&gt;, &lt;array&gt;, &lt;lineBreak&gt;, &lt;useAscii&gt; ) &lt;/pre&gt;  === Description ===  Append an array of lines to the end of previously opened file.  === Parameters === ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_FileAppendLines&amp;diff=5682&amp;oldid=prev"/>
				<updated>2015-06-18T10:38:50Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; FileAppendLines( &amp;lt;file&amp;gt;, &amp;lt;array&amp;gt;, &amp;lt;lineBreak&amp;gt;, &amp;lt;useAscii&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Append an array of lines to the end of previously opened file.  === Parameters === ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
FileAppendLines( &amp;lt;file&amp;gt;, &amp;lt;array&amp;gt;, &amp;lt;lineBreak&amp;gt;, &amp;lt;useAscii&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Append an array of lines to the end of previously opened file.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== file  ====&lt;br /&gt;
&lt;br /&gt;
A variable containing the File handle.&lt;br /&gt;
&lt;br /&gt;
==== array ====&lt;br /&gt;
&lt;br /&gt;
The array to write to the file.&lt;br /&gt;
&lt;br /&gt;
Each element in the array will be considered a new line for the file.&lt;br /&gt;
&lt;br /&gt;
==== lineBreak ====&lt;br /&gt;
&lt;br /&gt;
Optional; The line break to use.&lt;br /&gt;
&lt;br /&gt;
Default: &amp;quot;\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== useAscii ====&lt;br /&gt;
&lt;br /&gt;
Optional: Flag to decide if ASCII encoding should be used&lt;br /&gt;
&lt;br /&gt;
True = Save using ASCII encoding&lt;br /&gt;
&lt;br /&gt;
False = Save using UNICODE encoding&lt;br /&gt;
&lt;br /&gt;
Default: false (All strings in Sputnik are Unicode to save them to file you must specifically request ASCII encoding)&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Success: Returns true&lt;br /&gt;
&lt;br /&gt;
Failure: Returns false if error occurs.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
N/A&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$File = FileOpen(&amp;quot;a.txt&amp;quot;, &amp;quot;a&amp;quot;);&lt;br /&gt;
If(isVarObj($File, &amp;quot;file&amp;quot;))&lt;br /&gt;
{&lt;br /&gt;
	FileAppendLines( $File, array(&amp;quot;One&amp;quot;, &amp;quot;Two&amp;quot;, &amp;quot;Three&amp;quot;, &amp;quot;Four&amp;quot;) );&lt;br /&gt;
	FileClose( $File );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lets use &amp;quot;&amp;amp;lt;br&amp;amp;gt;&amp;quot; for the line breaks&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$File = FileOpen(&amp;quot;a.txt&amp;quot;, &amp;quot;a&amp;quot;);&lt;br /&gt;
If(isVarObj($File, &amp;quot;file&amp;quot;))&lt;br /&gt;
{&lt;br /&gt;
	FileAppendLines( $File, array(&amp;quot;One&amp;quot;, &amp;quot;Two&amp;quot;, &amp;quot;Three&amp;quot;, &amp;quot;Four&amp;quot;), &amp;quot;&amp;lt;br&amp;gt;&amp;quot; );&lt;br /&gt;
	FileClose( $File );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>