Help for this page

Select Code to Download


  1. or download this
    # Redirect STDOUT.
    
    ...
    }
    
    print(...);  # Goes to file if one was specified, else STDOUT.
    
  2. or download this
    # Use select.
    
    ...
    }
    
    print(...);  # Goes to file if one was specified, else STDOUT.
    
  3. or download this
    # If you want to output to STDOUT and to the file,
    # create a handle which may point to STDOUT.
    ...
    
    print FILE (...);  # Goes to file if one was specified, else STDOUT.
    print(...);        # Goes to STDOUT.