How to resolve the algorithm Check that file exists step by step in the Yabasic programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Check that file exists step by step in the Yabasic programming language
Table of Contents
Problem Statement
Verify that a file called input.txt and a directory called docs exist.
This should be done twice:
Optional criteria (May 2015): verify it works with:
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Check that file exists step by step in the Yabasic programming language
Source code in the yabasic programming language
open "foo.bar" for writing as #1
print #1 "Hallo !"
close #1
if (not open(1,"foo.bar")) print "Could not open 'foo.bar' for reading"
close #1
if (not open(1,"buzz.bar")) print "Could not open 'buzz.bar' for reading"
You may also check:How to resolve the algorithm Hofstadter Figure-Figure sequences step by step in the VBA programming language
You may also check:How to resolve the algorithm A+B step by step in the EchoLisp programming language
You may also check:How to resolve the algorithm Generate random chess position step by step in the Haskell programming language
You may also check:How to resolve the algorithm Solve a Numbrix puzzle step by step in the Icon and Unicon programming language
You may also check:How to resolve the algorithm Literals/String step by step in the Sidef programming language