You copied the Doc URL to your clipboard.

#pragma import(_main_redirection)

This pragma enables automatic command-line redirection.

Defining this pragma lets you use the < and > command-line operators to redirect the standard input, output, and error streams at program startup.

If you do not define this pragma and attempt to use redirection operators on the command-line, the redirection operators and associated filenames are passed to the program as ordinary argument strings.


#pragma import(_main_redirection)
Related information