<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Reference%2FFileReadUTF16LE</id>
	<title>Reference/FileReadUTF16LE - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Reference%2FFileReadUTF16LE"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Reference/FileReadUTF16LE&amp;action=history"/>
	<updated>2026-08-22T20:52:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=Reference/FileReadUTF16LE&amp;diff=21376&amp;oldid=prev</id>
		<title>Jan: Created page with &quot;=FileReadUTF16LE=   handle user_var(output) [maxlen]  This function is only available when building a [http://nsis.sourceforge.net/Docs/Chapter1.html#1.4 Unicode installer].  Rea...&quot;</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Reference/FileReadUTF16LE&amp;diff=21376&amp;oldid=prev"/>
		<updated>2011-11-27T20:08:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=FileReadUTF16LE=   handle user_var(output) [maxlen]  This function is only available when building a [http://nsis.sourceforge.net/Docs/Chapter1.html#1.4 Unicode installer].  Rea...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=FileReadUTF16LE=&lt;br /&gt;
&lt;br /&gt;
 handle user_var(output) [maxlen]&lt;br /&gt;
&lt;br /&gt;
This function is only available when building a [http://nsis.sourceforge.net/Docs/Chapter1.html#1.4 Unicode installer].&lt;br /&gt;
&lt;br /&gt;
Reads a string (UTF-16LE characters) from a file opened with [[Reference/FileOpen|FileOpen]]. The string is read until either a newline (or carriage return newline pair) occurs, or until a null wide-character is read, or until maxlen is met (if specified). By default, strings are limited to 1024 characters (a special build with larger NSIS_MAX_STRLEN can be compiled or downloaded). If the end of file is read and no more data is available, the output string will be empty, and the error flag will be set.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;ClearErrors&lt;br /&gt;
FileOpen $0 $INSTDIR\file.dat r&lt;br /&gt;
IfErrors done&lt;br /&gt;
FileReadUTF16LE $0 $1&lt;br /&gt;
DetailPrint $1&lt;br /&gt;
FileClose $0&lt;br /&gt;
done:&amp;lt;/highlight-nsis&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
</feed>