The FileOutputStream class is used to perform simple file output operations. It is used to write binary data to a file. The FileOutputStream class can be instantiated by using any of the following constructors:
This constructor creates a connection to write to the file with the name specified in the argument. It throws a FileNotFoundException if the file does not exist or cannot be opened for some reason.
This constructor creates a connection to write to the file with the name specified in the argument. If the second argument of the constructor is true, the bytes are written to the end of the file rather than to the beginning of the file. It throws a FileNotFoundException if the file does not exist or cannot be opened for some reason.
This constructor creates an OutputStream and establishes a connection with the actual file. It throws a FileNotFoundException if the file does not exist or cannot be opened for some reason.
This constructor creates an OutputStream and establishes a connection with the actual file. If the second argument of the constructor is true, the bytes are written to the end of the file rather than to the beginning of the file. It throws a FileNotFoundException if the file does not exist or cannot be opened for some reason.
This constructor uses a file descriptor object to write to a specified file. The file descriptor object represents a connection with the existing file.
- Become CIW Master CIW Enterprise Developer certified.
- Download practice question and study guide for scbcd for exam.
- Get certified in first attempt download scdjws - SCDJWS simulation.
- Pass SUN scjp - SCJP
- Download practice question and study guide for scjp-5-0 for exam.
- Pass SUN scmad - SCMAD
- Click here to download scwcd test study guide and practice question.
- Pass SUN CX310-055 - Java 5.0
- Download free practice test for CX310-056 SCJP 5.0 Java Upgrade exam.
- Download free practice test for CX310-065 SCJP 6.0 exam.
- Best exam simulation SUN CX310-066 download free trial.