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.
- Click here to get free master-ciw-enterprise-developer Master CIW Enterprise Developer exam practice questions.
- Become SUN SCBCD certified.
- Download practice question and study guide for scdjws for exam.
- Download practice question and study guide for scjp for exam.
- Download free practice test for scjp-5-0 SCJP 5/6 exam.
- Become SUN SCMAD certified.
- Get certified in first attempt download scwcd - SCWCD simulation.
- Become SUN Java 5.0 certified.
- Become SUN SCJP 5.0 Java Upgrade certified.
- Download free practice test for SUN SCJP 6.0 exam.
- Download practice question and study guide for CX310-066 for exam.