Re: Devices names....
- Posted by ChrisB (moderator) Nov 20, 2014
- 1332 views
Hi
Unless you are using an old DOS computer (not a dos box or console window), these are mostly irrelevant nowadays. The exception is CON which will output to the console.
CON usually = 1 so puts(1, "Hello\n") = puts(CON, "Hello\n") will print hello to the console, or the screen on a DOS computer.
File input and output is handled by open(), close(), seek, and so on, with printf() and puts() handling the actual file writing, and read(), read_file(), get() and gets() handling the rwading (other functions exist)
Direct access to the serial and parallel ports is available up to XP, but AFAIK isn't above this.
Access to the USB ports is unavailable on all windows machines, and reuires the use of specific drivers / DLLs to access specific items of hardware.
My advice - ignore this for now, port handling is a subject all to itself, and concentrate on writing a few simple programs.
ChrisB