File size: Difference between revisions

Content added Content deleted
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
(Added Wren)
Line 1,546: Line 1,546:
Dim root As New IO.FileInfo("\input.txt")
Dim root As New IO.FileInfo("\input.txt")
Console.WriteLine(root.Length)</lang>
Console.WriteLine(root.Length)</lang>

=={{header|Wren}}==
A file called "input.txt" has already been created which contains the string "abcdefghijklmnopqrstuvwxyz".

To check the size of a file in the root, just change "input.txt" to "/input.txt" in the following script.
<lang ecmascript>import "io" for File

var name = "input.txt"
System.print("'%(name)' has a a size of %(File.size(name)) bytes")</lang>

{{out}}
<pre>
'input.txt' has a a size of 26 bytes
</pre>


=={{header|X86 Assembly}}==
=={{header|X86 Assembly}}==