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.
- Pass SCBCD in first attampt.
- Get certified in first attempt download scdjws - SCDJWS simulation.
- Click here to download scjp test study guide and practice question.
- Become SUN SCJP 5/6 certified.
- Pass SCMAD in first attampt.
- Become SUN SCWCD certified.
- Get certified in first attempt download CX310-055 - Java 5.0 simulation.
- Become SUN SCJP 5.0 Java Upgrade certified.
- Click here to download CX310-065 test study guide and practice question.
- Pass SUN CX310-066 - SCJP Upgrade
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.