ChanServ changed the topic of #yab to: yab | yet another Basic for HAIKU || Homepage: https://yab.besly.de || Github: https://github.com/lorglas || Forum: http://yab.orgfree.com/forum/ || Logs: https://oftc.irclog.whitequark.org/yab
bbjimmy has quit [Ping timeout: 480 seconds]
bbjimmy_64 has quit [Ping timeout: 480 seconds]
bbjimmy has joined #yab
bbjimmy_64 has joined #yab
_-Caleb-_ has joined #yab
<_-Caleb-_> hi bbjimmy bbjimmy_64 :-)
<_-Caleb-_> i have a question (of course!) :-)
<_-Caleb-_> how can i check if file exist using yab?
<_-Caleb-_> im thinking in open file as reading but and with an IF (if output = "")
<_-Caleb-_> but ... is that the better way?
<_-Caleb-_> thanks in advanced :-)
<bbjimmy> let me think, I know I have checked for an existing file in the past.
<bbjimmy> open a,"file","r" Open the file for reading (may also be written as for reading). If the file does not exist, the command will fail.
<bbjimmy> if open "file","r" print "file exists"
<_-Caleb-_> okiss
<_-Caleb-_> thanks a lot!
<_-Caleb-_> i can check later
<_-Caleb-_> :-)
<bbjimmy> :)
_-Caleb-_ has quit [Quit: Vision[]: i've been blurred!]