Jump to content

Check that file exists: Difference between revisions

no edit summary
No edit summary
Line 552:
NSLog(@"input.txt %s", [fm fileExistsAtPath:@"input.txt"] ? @"exists" : @"doesn't exist");
NSLog(@"docs %s", [fm fileExistsAtPath:@"docs"] ? @"exists" : @"doesn't exist");</lang>
 
=={{header|Objeck}}==
<lang objeck>
use IO;
 
bundle Default {
class Test {
function : Main(args : String[]) ~ Nil {
File->Exists("input.txt")->PrintLine();
File->Exists("/input.txt")->PrintLine();
Directory->Exists("docs")->PrintLine();
Directory->Exists("/docs")->PrintLine();
}
}
</lang>
 
=={{header|OCaml}}==
760

edits

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