Re: Rob, bug fix/suggestion
Derek Brown writes:
> I have already figured out the solution though. DOH!
> All I had to do was make a custom puts command,
> PUTS(handle,"blah")...
Under DOS and Windows everything you
write to the NUL device is quietly discarded.
e.g.
integer nowhere
nowhere = open("NUL", "w")
puts(nowhere, "Hello?\n")
If you can't open a particular file, you could set the file
handle to nowhere, and the output would be discarded.
On Linux you can open "/dev/null" for the same purpose.
You can also redirect standard output into NUL,
e.g. on system commands:
system("del temp.dat > NUL", 2)
Your solution (using an alternate routine for puts)
is probably just as good.
Regards,
Rob Craig
Rapid Deployment Software
http://www.RapidEuphoria.com
|
Not Categorized, Please Help
|
|