File size: Difference between revisions

390 bytes removed ,  10 months ago
m
no edit summary
(Initial FutureBasic task solution added)
mNo edit summary
Line 1,217:
println[newJava["java.io.File", "/input.txt"].length[]]</syntaxhighlight>
 
=={{header|FutureBasic}}==
<syntaxhighlight lang="futurebasic">
local fn DoIt
Line 1,230:
HandleEvents
</syntaxhighlight>
{{output}}
<pre>
local fn DoIt
CFURLRef desktopURL = fn FileManagerURLForDirectory( NSDesktopDirectory, NSUserDomainMask )
CFURLRef url = fn URLByAppendingPathComponent( desktopURL, @"test_file.txt" )
CFDictionaryRef attributes = fn FileManagerAttributesOfItemAtURL( url )
printf @"%@", fn DictionaryObjectForKey( attributes, NSFileSize )
end fn
 
fn DoIt
 
HandleEvents
</pre>
 
=={{header|Gambas}}==
715

edits