FILE HANDLING
, Input / Output
• Input is any information provided to the program
– Keyboard input
– Mouse input
– File input
– Sensor input (microphone, camera, photo cell, etc.)
• Output is any information (or effect) that a
program produces:
– sounds, lights, pictures, text, motion, etc.
– on a screen, in a file, on a disk or tape, etc.
, Kinds of Input and Output
• What kinds of Input and Output have we knew
– print (to the console)
– input (from the keyboard)
• So far…
– Input: keyboard input only
– Output: graphical and text output transmitted to
the computer screen
• Any other means of I/O?
, Input / Output
• Input is any information provided to the program
– Keyboard input
– Mouse input
– File input
– Sensor input (microphone, camera, photo cell, etc.)
• Output is any information (or effect) that a
program produces:
– sounds, lights, pictures, text, motion, etc.
– on a screen, in a file, on a disk or tape, etc.
, Kinds of Input and Output
• What kinds of Input and Output have we knew
– print (to the console)
– input (from the keyboard)
• So far…
– Input: keyboard input only
– Output: graphical and text output transmitted to
the computer screen
• Any other means of I/O?