Re: open() : Files that don't exist
- Posted by don cole <doncole at pacbell.net> Dec 31, 2005
- 455 views
Alex Chamberlain wrote: > > Why does }}} <eucode>open("debug.txt", "w")</eucode> {{{ create a file called > "DEBUG.TXT"? > Is there a way to get around this? > > Thanks, > Alex global function exist(sequence fileOrFolder) object x x=dir(fileOrFolder) if atom(x) then return 0 else return 1 end if end function if exist("debug.txt") then open("debug.txt", "w") else --do nothing end if Don Cole A Bug is an un-documented feature. A Feature is a documented Bug.