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.
- Get certified in first attempt download master-ciw-enterprise-developer - Master CIW Enterprise Developer simulation.
- Download free practice test for scbcd SCBCD exam.
- Become SUN SCDJWS certified.
- Download free practice test for scjp SCJP exam.
- Click here to download scjp-5-0 test study guide and practice question.
- Become SUN SCMAD certified.
- Click here to get free scwcd SCWCD exam practice questions.
- Pass Java 5.0 in first attampt.
- Get certified in first attempt download CX310-056 - SCJP 5.0 Java Upgrade simulation.
- Download free practice test for CX310-065 SCJP 6.0 exam.
- Pass SCJP Upgrade in first attampt.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
