Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 21h Function 46h
 Summary                                   Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     If the handle passed in CX already refers to an open file, that
     file is closed first.
 
     A seek, read, or write operation that moves the file pointer for
     one of the two handles also moves the file pointer associated with
     the other.
 
     This function is commonly used to redirect the standard input and
     output handles to another file or device before a child process is
     executed with Int 21h Function 4Bh.
                                    -♦-