Rob, bug fix/suggestion

new topic     » topic index » view thread      » older message » newer message

Rob, if you have some time, can you consider this request...
  What I'm trying to do is put() data to either the screen or a file, without
having to use if and then statements.  IE puts(output,"BLAH").  I want to add
one more output mode, which is none, but still refrain from using the if and
then statements.  I was wondering if you could make puts(-1,"Blah") go
nowhere.  In other words, if puts() sees -1, it will just end the procedure
right there.  This could be a good bug fix too.  If someone is opening a file
and printing to it (like moi), then this would avoid crashing the program if
the file doesn't open for some reason.  I could say "unable to open file
ABC.XYZ", then when it tries to print to the file handle (-1), the program
will still work.
  Or, if you don't like that, could you make 0 the code for nowhere?

Thanks,
Derek Brown

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu