<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Btrunc</id>
	<title>Btrunc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Btrunc"/>
	<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Btrunc&amp;action=history"/>
	<updated>2026-05-14T22:46:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Btrunc&amp;diff=4509&amp;oldid=prev</id>
		<title>Albie: New article</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Btrunc&amp;diff=4509&amp;oldid=prev"/>
		<updated>2006-07-23T03:05:19Z</updated>

		<summary type="html">&lt;p&gt;New article&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This truncates/extends a file to the specified length.&lt;br /&gt;
 btrunc &amp;lt;filename&amp;gt; &amp;lt;bytes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
 ;Create a file of 15 bytes, (13 for the text plus 2 for [[$crlf]])&lt;br /&gt;
 [[write]] -c btrunc.test Hi I am Dana!&lt;br /&gt;
 [[echo]] -ag File size: [[$file]](btrunc.test).size&lt;br /&gt;
 &lt;br /&gt;
 ;Lets cut it down to only two bytes.&lt;br /&gt;
 btrunc btrunc.test 2&lt;br /&gt;
 echo -ag File size after btrunc: $file(btrunc.test).size&lt;br /&gt;
 echo -ag File content: [[$read]](btrunc.test,1)&lt;br /&gt;
 &lt;br /&gt;
 ;Now lets make the file back to 15 bytes.&lt;br /&gt;
 btrunc btrunc.test 15&lt;br /&gt;
 echo -ag File size at end is now: $file(btrunc.test).size&lt;br /&gt;
&lt;br /&gt;
== Note ==&lt;br /&gt;
This alias is very rarely used to extend files; usually used to truncate files only.&lt;br /&gt;
&lt;br /&gt;
[[Category:Binary Files]]&lt;br /&gt;
[[Category:Commands]]&lt;/div&gt;</summary>
		<author><name>Albie</name></author>
	</entry>
</feed>