File size: Difference between revisions

Content added Content deleted
(Initial FutureBasic task solution added)
mNo edit summary
Line 1,217: Line 1,217:
println[newJava["java.io.File", "/input.txt"].length[]]</syntaxhighlight>
println[newJava["java.io.File", "/input.txt"].length[]]</syntaxhighlight>


=={{header|FutureBasic}==
=={{header|FutureBasic}}==
<syntaxhighlight lang="futurebasic">
<syntaxhighlight lang="futurebasic">
local fn DoIt
local fn DoIt
Line 1,230: Line 1,230:
HandleEvents
HandleEvents
</syntaxhighlight>
</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}}==
=={{header|Gambas}}==