public class FileIOStream
extends java.lang.Object
Constructor and Description |
---|
FileIOStream() |
Modifier and Type | Method and Description |
---|---|
static void |
input()
Reads input student 'credits' data from a binary FileInputStream file and
write them to the terminal window.
|
static void |
main(java.lang.String[] args)
Driver method for FileOutputStream and FileInputStream demo.
|
static void |
output()
Writes output student 'credits' data to a binary FileOutputStream file.
|
public static void main(java.lang.String[] args)
args
- the String[] array command line parameterpublic static void output() throws java.io.IOException
java.io.IOException
- for any file operation failure related to the 'temp.data' filejava.util.InputMismatchException
- if user enters non-integer input for 'credits'public static void input() throws java.io.IOException
java.io.IOException
- for any file operation related to the 'temp.dat' file