Jump to content

File size: Difference between revisions

Added Wren
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
(Added Wren)
Line 1,546:
Dim root As New IO.FileInfo("\input.txt")
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}}==
9,486

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.