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