- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Will this work on Windows if we want to have a "quiet" mode for our code that prevents output to a certain file? I don't see it documented anywhere, but I came across some references to it on the internet (not this forum).
open(iunit,file='NUL')
I could add some logic to conditionally write, based on the value of some flag, but there are probably hundreds of places we might write to this file. On Unix platforms I would change the file name to '/dev/null'.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, this works. See the MSDN documentation for the CreateFile function for more possibilities.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page