AK2
- 39
- 0
Is there a way you can redirect both input and output in a Windows operating system. The book I am using only explains how to do this in DOS. Thanks.
The discussion revolves around redirecting input and output in the C programming language, specifically within the context of the Windows operating system. Participants explore methods for handling standard input and output, as well as file I/O operations.
programm.exe < input.txt > output.txt in a command shell or modifying a shortcut command.fopen, fprintf, and fclose for output, and fscanf for input.sscanf and sprintf for input and output to strings, highlighting their utility in managing carriage return characters with fgets.Participants have shared various methods and insights regarding input and output redirection in C, but there is no consensus on the best approach or the implications for programming microcontrollers.
The discussion includes various methods for handling input and output in C, but does not resolve the effectiveness or applicability of these methods in specific engineering contexts, such as microcontroller programming.
Individuals interested in C programming, particularly in the context of input/output operations and applications in engineering or embedded systems.
AK2 said:Is there a way you can redirect both input and output in a Windows operating system. The book I am using only explains how to do this in DOS. Thanks.